Inscrit le: 04 Déc 2017
|Posté le: Sam 28 Avr 2018 - 09:44 Sujet du message: BUG: Setting filter as default
Found a bug in the saving of a default project list filter.
Saving a filter as a default triggers the following (line 335):
->addWhere('id != ?', $r->getId())
This is supposed to loop through the reports table and switch the default flag of any filter that is currently fault - except for the one we're making default - to 0. The problem is that it doesn't limit to the current user, so EVERY default filter - regardless of user - will be set to 0. The result is that other user's default filters will be switched back to a non default status - there would be only one default filter in the database table at any time, and it would always be the last person to save a filter as default. The fix is easy, just add in the following line as a where clause:
Any help will be apprecited.
I didn't find the right solution from the Internet.
Video content production service