Bug 11166: make library filter in funds administration page more precise
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Wed, 30 Oct 2013 09:28:49 +0000 (10:28 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 15 Jan 2014 17:21:40 +0000 (14:21 -0300)
commitccbaa6f3c42ece752a7c7d6d5c4142ea57d6fd1d
tree09c4acfdaeb62d8756c62d9220802d82ea872b15
parent92d8d9b9c8509828b51c0c7ea8d952e1d065140a
Bug 11166: make library filter in funds administration page more precise

In funds administration, admin/aqbudgets.pl, there is a combobox for
filtering by library code.

The bug is that the filter uses a pattern match  instead of equals :
  next unless $budget->{budget_branchcode} =~ m/$filter_budgetbranch/;

In this case, if there is a library with code '1' and one with code '12',
filtering by library '1' will also show funds of library '12'.

Test plan :
- Create a library with code '1' and one with code '12'
- Create funds in both libraries
- Go to admin/aqbudgets.pl
- Filter by branch '12'
=> You see only funds of this library
- Filter by branch '1'
=> You see only funds of this library

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl, works as advertised

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 484d1490925d736f99a430a6933c96e42ea4e768)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
(cherry picked from commit 64c79561bbabf6476fb72c27435789f4dd19180a)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/aqbudgets.pl