[Rt-commit] r3368 - in rt/branches/3.5-TESTING: . html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 3 18:59:20 EDT 2005


Author: jesse
Date: Sun Jul  3 18:59:19 2005
New Revision: 3368

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/Elements/EditCustomField
Log:
 r22222 at hualien:  jesse | 2005-07-03 18:24:27 -0400
  r22146 at hualien:  jesse | 2005-07-03 17:50:13 -0400
   r22098 at hualien:  jesse | 2005-07-03 16:26:12 -0400
    r21521 at hualien:  jesse | 2005-06-23 19:49:30 -0400
    * Custom field edit widget bullet proofing
   
  
 


Modified: rt/branches/3.5-TESTING/html/Elements/EditCustomField
==============================================================================
--- rt/branches/3.5-TESTING/html/Elements/EditCustomField	(original)
+++ rt/branches/3.5-TESTING/html/Elements/EditCustomField	Sun Jul  3 18:59:19 2005
@@ -51,6 +51,9 @@
     $NamePrefix ||= join('-', 'Object', ref($Object), $Object->Id, 'CustomField', '');
 }
 my $Type = $CustomField->Type;
+
+return unless ($Type); # if we can't see the type, all hell will break loose.
+
 my $MaxValues = $CustomField->MaxValues;
 if ($MaxValues == 1 and $Object and $Values) {
     # what exactly is this doing?  Without the "unless" it breaks RTFM


More information about the Rt-commit mailing list