Bug 15742: Remove unnecessary loop in j2a cronjob
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 4 Feb 2016 13:25:14 +0000 (13:25 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 23 Feb 2016 21:19:08 +0000 (21:19 +0000)
commitcf047247893b04de820ff51e9b2d8f43773af332
tree89aa934c8cbb8b332d9fbeeabeac78905186f43a
parentefad45a0e39703017a894d3ffdd1a7078d13af60
Bug 15742: Remove unnecessary loop in j2a cronjob

If no branchcode is given, all the libraries are retrieved and the same
query (so without using the libraries loop) is executed for each
library.

Test plan:
Use the j2a.pl cronjob to change the category of a child patron
If a branchcode is passed to the script, only the children from this
branchcode should be updated.
But if it is not passed, all children of the DB should be updated.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
misc/cronjobs/j2a.pl