fix editing employee pw, RT#32456
authorIvan Kohler <ivan@freeside.biz>
Thu, 2 Aug 2018 20:06:39 +0000 (13:06 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 2 Aug 2018 20:06:39 +0000 (13:06 -0700)
httemplate/edit/process/elements/process.html

index 85f060e..d2b0370 100644 (file)
@@ -280,7 +280,7 @@ foreach my $value ( @values ) {
     }
 
     if ( $opt{'post_new_object_callback'} ) {
     }
 
     if ( $opt{'post_new_object_callback'} ) {
-      &{ $opt{'post_new_object_callback'} }( $cgi, $new );
+      $error ||= &{ $opt{'post_new_object_callback'} }( $cgi, $new );
     }
 
     if ( $opt{'agent_virt'} ) {
     }
 
     if ( $opt{'agent_virt'} ) {