[user manager] filters min_register/max_register applied even when filters closed #1595

Closed
opened 2026-10-05 00:49:33 +02:00 by adam · 0 comments
Owner

Imagine you have users registered from January 2015 to September 2022. The "registered on" filter will start on "Jan 2015" and stop on "Sep 2022". We're now in December 2022, and we create a new user. This user won't appear in the list! Simply because pwg.users.getList is called with min_register=2015 1 and max_register=2022 9, excluding automatically any user registered in December 2022. Only a refresh on the page make the new user appear in the list.

The filter should be applied when closed OR min_register should not be used if equals the minimum value and max_register should not be applied if equals the maximum value.

Imagine you have users registered from January 2015 to September 2022. The "registered on" filter will start on "Jan 2015" and stop on "Sep 2022". We're now in December 2022, and we create a new user. This user won't appear in the list! Simply because `pwg.users.getList` is called with `min_register=2015 1` and `max_register=2022 9`, excluding automatically any user registered in December 2022. Only a refresh on the page make the new user appear in the list. The filter should be applied when closed OR `min_register` should not be used if equals the minimum value and `max_register` should not be applied if equals the maximum value. <!-- github-sync-id:1494369716 -->
adam closed this issue 2026-10-05 00:49:33 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1595