]> git.koha-community.org Git - koha.git/commit
Bug 33155: Fix category and library filters in patron search header
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Mar 2023 12:55:19 +0000 (13:55 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 7 Mar 2023 18:01:24 +0000 (15:01 -0300)
commit79e4aabc31c85fc32f2f09599818fd7b4dff117f
treeee7f8c20ec229f93a016c26f6aad39ee3ac07e17
parent96f5f80bdd567a306ec342ceee42cfac928144cb
Bug 33155: Fix category and library filters in patron search header

Caused by
  commit f1925cf89dbc1039fc48abfabad1472289387148
  Bug 7380: Rename filter to avoid confusion

     [% IF categorycode %]
-        $("#categorycode_filter").val("[% categorycode %]");
+        $("#categorycode_filter").val("[% categorycode_filter %]");
     [% END %]
     [% IF branchcode %]
-        $("#branchcode_filter").val("[% branchcode %]");
+        $("#branchcode_filter").val("[% branchcode_filter %]");
     [% END %]

Forgot to rename the vars in the IF statements

Test plan:
Go to the Koha mainpage
Click "Search patrons" in the headers
Open the filters
Select something for library and category, search
=> The values must be picked for the patron search

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt