Bug 5201 Patron surname dropped
authorFrédéric Demians <f.demians@tamil.fr>
Thu, 16 Sep 2010 12:37:38 +0000 (08:37 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 10:18:52 +0000 (06:18 -0400)
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

members/memberentry.pl

index 6ec6d8e..eacb2ff 100755 (executable)
@@ -247,7 +247,7 @@ if ($op eq 'save' || $op eq 'insert'){
     }
   }
   
-    if(C4::Context->preference('uppercasesurnames')) {
+    if($newdata{surname} && C4::Context->preference('uppercasesurnames')) {
         $newdata{'surname'} = uc($newdata{'surname'});
     }