[Rt-commit] r3250 - in rt/branches/3.4-RELEASE: . html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Fri Jun 24 13:54:57 EDT 2005


Author: jesse
Date: Fri Jun 24 13:54:56 2005
New Revision: 3250

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/Elements/EditCustomField
Log:
 r21521 at hualien:  jesse | 2005-06-23 19:49:30 -0400
 * Custom field edit widget bullet proofing


Modified: rt/branches/3.4-RELEASE/html/Elements/EditCustomField
==============================================================================
--- rt/branches/3.4-RELEASE/html/Elements/EditCustomField	(original)
+++ rt/branches/3.4-RELEASE/html/Elements/EditCustomField	Fri Jun 24 13:54:56 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