From eba64bf25d8da0f091ce0b5d8329385638fb1fe1 Mon Sep 17 00:00:00 2001 From: D Ruth Bavousett Date: Tue, 17 May 2011 11:45:48 -0400 Subject: [PATCH] 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 Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- admin/smart-rules.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 3c77f93893..5ba92d8edc 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -376,6 +376,7 @@ my $sth2 = $dbh->prepare(" $sth2->execute($branch); while (my $row = $sth2->fetchrow_hashref) { + $row->{'current_branch'} ||= $row->{'branchcode'}; $row->{'humanitemtype'} ||= $row->{'itemtype'}; $row->{'default_humanitemtype'} = 1 if $row->{'humanitemtype'} eq '*'; $row->{'humancategorycode'} ||= $row->{'categorycode'}; -- 2.39.5