Bug 9330: title field empty when duplicating a patron
authorAdrien Saurat <adrien.saurat@biblibre.com>
Mon, 31 Dec 2012 11:12:02 +0000 (12:12 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 1 Feb 2013 17:01:59 +0000 (12:01 -0500)
For a duplicated patron, the "Saluation" information
is now empty by default.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
members/memberentry.pl

index d2302dc..f6d3e5e 100755 (executable)
@@ -524,8 +524,8 @@ my $roadpopup = CGI::popup_menu(-name=>'streettype',
         -default=>$default_roadtype
         );  
 
-my $default_borrowertitle;
-$default_borrowertitle=$data{'title'} ;
+my $default_borrowertitle = '';
+unless ( $op eq 'duplicate' ) { $default_borrowertitle=$data{'title'} }
 my($borrowertitle)=GetTitles();
 $template->param( title_cgipopup => 1) if ($borrowertitle);
 my $borrotitlepopup = CGI::popup_menu(-name=>'title',