Bug 16736 - Keep branch filter when changing suggestion
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 14 Jun 2016 15:05:58 +0000 (17:05 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Jun 2016 13:07:28 +0000 (13:07 +0000)
When changing suggestion, the selected tab is kept.
The same should be done with the selected branch.

Test plan:
- Go to suggestions table : /cgi-bin/koha/suggestion/suggestion.pl
- Select a branch in Acquisition information > For
- Select a pending suggestion
- Change status as accepted
- Click on Submit
=> without patch, the table is no longer filtered by branch
=> with patch, the table is filtered by branch

Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

index fd4f474..cbe3e44 100644 (file)
@@ -637,7 +637,7 @@ h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
         </div>
     </div>
 
-
+    <input type="hidden" name="branchcode" value="[% branchfilter %]" />
     <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
     <input type="hidden" name="op" value="change" />
 </fieldset>