]> git.koha-community.org Git - koha.git/commit
Bug 5376: Batch Mod and Delete require superlibrarian permissions
authorIan Walls <ian.walls@bywatersolutions.com>
Tue, 25 Jan 2011 04:09:39 +0000 (23:09 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sun, 30 Jan 2011 00:57:12 +0000 (19:57 -0500)
commitcc3ba2c1abc3f58fbc5fffc7bf2bc098b854dcc9
tree71939212ac63437f57992e74028bc41ae6b7151d
parent07ba717450f7023def3d75a2eb8719b776768b1f
Bug 5376: Batch Mod and Delete require superlibrarian permissions

This only occurs with IndependantBranches turned on; in an attempt to check that the items being
modified belonged to the user's branch, the code made a simultaneous comparison and assignment,
which is not permitted in all compilations of Perl.

Splitting the assignment of $itembranchcode and the check for its non-null value fixes the problem

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 12c116236f0f686005bbe035659778012bcaf862)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
tools/batchMod.pl