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

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

Return to bug 15524