View | Details | Raw Unified | Return to bug 15524
Collapse All | Expand All

(-)a/admin/smart-rules.pl (-2 / +1 lines)
Lines 304-310 elsif ($op eq "add-branch-cat") { Link Here
304
            $sth_search->execute($categorycode);
304
            $sth_search->execute($categorycode);
305
            my $res = $sth_search->fetchrow_hashref();
305
            my $res = $sth_search->fetchrow_hashref();
306
            if ($res->{total}) {
306
            if ($res->{total}) {
307
                $sth_update->execute( $maxissueqty, $maxonsiteissueqty, $categorycode, $max_holds );
307
                $sth_update->execute( $maxissueqty, $maxonsiteissueqty, $max_holds, $categorycode );
308
            } else {
308
            } else {
309
                $sth_insert->execute( $categorycode, $maxissueqty, $maxonsiteissueqty, $max_holds );
309
                $sth_insert->execute( $categorycode, $maxissueqty, $maxonsiteissueqty, $max_holds );
310
            }
310
            }
311
- 

Return to bug 15524