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 Cormack <chrisc@catalyst.net.nz>
Fri, 28 Jan 2011 02:46:32 +0000 (15:46 +1300)
commit12c116236f0f686005bbe035659778012bcaf862
tree53658ded29c78bf5e39a47bee7a478da8b212ea4
parent34ba87625a80701cce7a1ffca9fab1f3691bb3ab
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>
tools/batchMod.pl