[Rt-commit] [svn] r1683 - in rt/branches/3.3-TESTING: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Sat Oct 23 17:49:40 EDT 2004


Author: jesse
Date: Sat Oct 23 17:49:38 2004
New Revision: 1683

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/lib/RT/Record.pm
Log:
 r6090 at tinbook:  jesse | 2004-10-23T21:44:41.851286Z
 Fixed a warning when objects were created with no names
 


Modified: rt/branches/3.3-TESTING/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Record.pm	(original)
+++ rt/branches/3.3-TESTING/lib/RT/Record.pm	Sat Oct 23 17:49:38 2004
@@ -559,7 +559,7 @@
 sub ValidateName {
     my $self = shift;
     my $value = shift;
-    if ($value =~ /^\d+$/) {
+    if ($value && $value=~ /^\d+$/) {
         return(0);
     } else  {
          return (1);


More information about the Rt-commit mailing list