[Rt-commit] r3331 - in rt/branches/CHALDEA-EXPERIMENTAL: . html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 3 18:11:45 EDT 2005


Author: jesse
Date: Sun Jul  3 18:11:45 2005
New Revision: 3331

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/   (props changed)
   rt/branches/CHALDEA-EXPERIMENTAL/html/Elements/EditCustomField
Log:
 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/CHALDEA-EXPERIMENTAL/html/Elements/EditCustomField
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/Elements/EditCustomField	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/Elements/EditCustomField	Sun Jul  3 18:11:45 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