fix bug 7068 - autobarcode not working when duplicating patrons
.. by blanking cardnumber in the code and showing it in the template, instead of just not showing it in the template Autobarcode now correctly fills in on a duplicated patron. Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
3b95557c6f
commit
1fe6e116cb
2 changed files with 3 additions and 6 deletions
|
@ -988,11 +988,7 @@
|
|||
<label for="cardnumber">
|
||||
[% END %]
|
||||
Card number: </label>
|
||||
[% IF ( opduplicate ) %]
|
||||
<input type="text" id="cardnumber" name="cardnumber" size="20" />
|
||||
[% ELSE %]
|
||||
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
|
||||
[% END %]
|
||||
[% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
|
||||
[% END %]
|
||||
[% UNLESS nobranchcode %]
|
||||
|
|
|
@ -433,9 +433,10 @@ if ($op eq "modify") {
|
|||
if ( $op eq "duplicate" ) {
|
||||
$template->param( updtype => 'I' );
|
||||
$template->param( step_1 => 1, step_2 => 1, step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1 ) unless $step;
|
||||
$data{'cardnumber'} = "";
|
||||
}
|
||||
|
||||
$data{'cardnumber'}=fixup_cardnumber($data{'cardnumber'}) if $op eq 'add';
|
||||
$data{'cardnumber'}=fixup_cardnumber($data{'cardnumber'}) if ( ( $op eq 'add' ) or ( $op eq 'duplicate' ) );
|
||||
if(!defined($data{'sex'})){
|
||||
$template->param( none => 1);
|
||||
} elsif($data{'sex'} eq 'F'){
|
||||
|
|
Loading…
Reference in a new issue