Bug 18919: Repair "Transaction branch" in cash_register_stats.pl
authorBaptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
Mon, 10 Jul 2017 08:11:33 +0000 (08:11 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Aug 2017 15:17:45 +0000 (12:17 -0300)
- values of the option fields are now correctly loaded

TEST PLAN:
go to domain/cgi-bin/koha/reports/cash_register_stats.pl
1 - Make a report for all branches => it works
2 - Make a report for any branch => you will get the same or no result
3 - apply patch
4 - Repeat 2 => it should work

Followed test plan worked as intended
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt

index 2a4a6d4..adba384 100644 (file)
@@ -186,9 +186,9 @@ $(document).ready(function() {
                         <option value="ALL">All</option>
                         [% FOREACH branchloo IN branchloop %]
                             [% IF ( branchloo.selected ) %]
-                            <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
+                            <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
                             [% ELSE %]
-                            <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
+                            <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
                             [% END %]
                         [% END %]
                     </select>