X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=suggestion%2Fsuggestion.pl;fp=suggestion%2Fsuggestion.pl;h=12eb39f017deaea702935fc67d0b229b7862d89c;hb=3b6fd415b450e66058cd97923d9ea68a37223479;hp=5372e00d5b00a5c1fc71a73c5fc542c88607d3f7;hpb=1473575317423b01e03d5eb09ab03625f0ad0a49;p=srvgit diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 5372e00d5b..12eb39f017 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -356,6 +356,11 @@ if ($op=~/else/) { { @criteria_dv = ( C4::Context->userenv->{'branch'} ); } + # Pending tab first + if ( $displayby eq 'STATUS' ) { + @criteria_dv = grep { $_ ne 'ASKED' } @criteria_dv; + unshift @criteria_dv, 'ASKED'; + } my @allsuggestions; foreach my $criteriumvalue ( @criteria_dv ) {