diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 6a55b7bde4..485061be6a 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -297,7 +297,7 @@ elsif ($op eq "add-branch-cat") { maxonsiteissueqty = ? WHERE categorycode = ? |); - $sth_search->execute($branch); + $sth_search->execute($categorycode); my $res = $sth_search->fetchrow_hashref(); if ($res->{total}) { $sth_update->execute($maxissueqty, $maxonsiteissueqty, $categorycode);