Bug 30127: By default show pending suggestions tab
authorFridolin Somers <fridolin.somers@biblibre.com>
Sat, 30 Apr 2022 02:46:24 +0000 (16:46 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 May 2022 09:09:09 +0000 (23:09 -1000)
commit3b6fd415b450e66058cd97923d9ea68a37223479
tree0525745560507e81d75f1079704bae4c4335407c
parent1473575317423b01e03d5eb09ab03625f0ad0a49
Bug 30127: By default show pending suggestions tab

Pending suggestions are the most important ones in links pointing to suggestions.
This tab should be the default one, like did Bug 7875

Changing order in perl code seems really difficult because it is a
generic code using GetDistinctValues()

Test plan :
1) Create some suggetions, accept some of them
2) In staff interface, click on 'More > Suggestions'
=> You see pending tab selected
3) In left menu, click on 'Suggestions' under 'Late orders'
=> You see pending tab selected
4) In left menu, use a filter, then click on '[clear]'
=> You see pending tab selected
5) Create a suggestion, click on 'cancel'
=> You see pending tab selected
6) Create a suggestion, click on 'Suggestions' in breadcrumbs
=> You see pending tab selected
7) Edit an existing suggestion, click on '<< Back to suggestions'
=> You see pending tab selected
8) Create a suggestion, click on 'Submit your suggestion'
=> You see pending tab selected

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
suggestion/suggestion.pl