Bug 32531: Restore behaviour of 'include archived' filter
authorFrédéric Demians <f.demians@tamil.fr>
Sat, 24 Dec 2022 08:20:09 +0000 (09:20 +0100)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Fri, 13 Jan 2023 15:54:39 +0000 (15:54 +0000)
commit80074333e0085350bc664c6e164027d382b4c901
tree07293cfaf083c8f1096e3dd030fdccd8e7298ee3
parentc09db113208f77ac9c2edcbb8c993eea04c452db
Bug 32531: Restore behaviour of 'include archived' filter

In Suggestions management, there is a sidebar menu to organize and
filter suggestions. In the "Suggestion information" filter section,
there is a checkbox "Include archived". When this box us unchecked, the
archived suggestions are not displayed. When this box is checked, all
suggestions are displayed, archived, and not archived. This is not the
case anymore, only archived suggestions are displayed, supposedly since
patch for bug 23991.

TO TEST:

1. On a Koha installation remove all suggestions (in the table).
2. Create two suggestions. Archive one of them.
3. Check/Uncheck filter 'Include Archived'. Confirm that when the box is
   checked, you don't see anymore the unarchived suggestion.
4. Apply the patch.
5. Repeat 3, and confirm that the filter operates properly.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit cf04403dd88f747c92bc776cc4e130bc6e24e91c)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
suggestion/suggestion.pl