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)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 26 Feb 2016 14:33:52 +0000 (15:33 +0100)
commit93c5535eb5498887052d5c44d661b99b3f550461
treeaf12bf345f18dd9d0289dc68750de1243f5b8c2f
parent1f23c54b2ca0b59761a5c9b1c170d8f922524774
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
(cherry picked from commit cf047247893b04de820ff51e9b2d8f43773af332)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
misc/cronjobs/j2a.pl