Bug 6351: Unable to delete branch-specific circulation rule
The URL on the page did not have a branchcode, so the delete failed silently, and returned the user to the "All" rules page. Turns out, the array for the rules was not being populated with the branchcode! Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
30dc7ed25b
commit
eba64bf25d
1 changed files with 1 additions and 0 deletions
|
@ -376,6 +376,7 @@ my $sth2 = $dbh->prepare("
|
||||||
$sth2->execute($branch);
|
$sth2->execute($branch);
|
||||||
|
|
||||||
while (my $row = $sth2->fetchrow_hashref) {
|
while (my $row = $sth2->fetchrow_hashref) {
|
||||||
|
$row->{'current_branch'} ||= $row->{'branchcode'};
|
||||||
$row->{'humanitemtype'} ||= $row->{'itemtype'};
|
$row->{'humanitemtype'} ||= $row->{'itemtype'};
|
||||||
$row->{'default_humanitemtype'} = 1 if $row->{'humanitemtype'} eq '*';
|
$row->{'default_humanitemtype'} = 1 if $row->{'humanitemtype'} eq '*';
|
||||||
$row->{'humancategorycode'} ||= $row->{'categorycode'};
|
$row->{'humancategorycode'} ||= $row->{'categorycode'};
|
||||||
|
|
Loading…
Reference in a new issue