Lines 569-575
if ($nok or !$nodouble){
Link Here
|
569 |
%data=%newdata; |
569 |
%data=%newdata; |
570 |
$template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! |
570 |
$template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! |
571 |
unless ($step){ |
571 |
unless ($step){ |
572 |
$template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1); |
572 |
$template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1, step_7 => 1 ); |
573 |
} |
573 |
} |
574 |
} |
574 |
} |
575 |
if (C4::Context->preference("IndependentBranches")) { |
575 |
if (C4::Context->preference("IndependentBranches")) { |
Lines 582-592
if (C4::Context->preference("IndependentBranches")) {
Link Here
|
582 |
} |
582 |
} |
583 |
} |
583 |
} |
584 |
if ($op eq 'add'){ |
584 |
if ($op eq 'add'){ |
585 |
$template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1); |
585 |
$template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1); |
586 |
} |
586 |
} |
587 |
if ($op eq "modify") { |
587 |
if ($op eq "modify") { |
588 |
$template->param( updtype => 'M',modify => 1 ); |
588 |
$template->param( updtype => 'M',modify => 1 ); |
589 |
$template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1) unless $step; |
589 |
$template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1, step_7 => 1) unless $step; |
590 |
if ( $step == 4 ) { |
590 |
if ( $step == 4 ) { |
591 |
$template->param( categorycode => $borrower_data->{'categorycode'} ); |
591 |
$template->param( categorycode => $borrower_data->{'categorycode'} ); |
592 |
} |
592 |
} |
Lines 602-608
if ($op eq "modify") {
Link Here
|
602 |
} |
602 |
} |
603 |
if ( $op eq "duplicate" ) { |
603 |
if ( $op eq "duplicate" ) { |
604 |
$template->param( updtype => 'I' ); |
604 |
$template->param( updtype => 'I' ); |
605 |
$template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1 ) unless $step; |
605 |
$template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1, step_7 => 1 ) unless $step; |
606 |
$data{'cardnumber'} = ""; |
606 |
$data{'cardnumber'} = ""; |
607 |
} |
607 |
} |
608 |
|
608 |
|
609 |
- |
|
|