When arriving on the history page in the search section from a picture, the datepicker changes its value twice and therefore triggers its OnChange event twice, the first of which launches an ajax request with the wrong parameter (end: 1899-12-31).

![Capture d’écran 2024-02-19 à 12 47 44](https://github.com/Piwigo/Piwigo/assets/137212265/0c901062-2c3f-42f2-96cd-202a5bbd1368)

Double request due to datepicker on history page
This is a GitHub Issue
repo:Piwigo
owner:Piwigo
Title : Double request due to datepicker on history page
Issue date:

--- start body ---
When arriving on the history page in the search section from a picture, the datepicker changes its value twice and therefore triggers its OnChange event twice, the first of which launches an ajax request with the wrong parameter (end: 1899-12-31).

![Capture d’écran 2024-02-19 à 12 47 44](https://github.com/Piwigo/Piwigo/assets/137212265/0c901062-2c3f-42f2-96cd-202a5bbd1368)

--- end body ---
