[Rt-commit] rt branch, hierarchical-cf, updated. fd95bc993fb71079c60b823f190cfc23a953d460

Alex M Vandiver alexmv at bestpractical.com
Fri Sep 11 11:48:50 EDT 2009


The branch, hierarchical-cf has been updated
       via  fd95bc993fb71079c60b823f190cfc23a953d460 (commit)
      from  addb5821719c29056fd95b05b6ff0ca27774580e (commit)

Summary of changes:
 share/html/Admin/Elements/AddCustomFieldValue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit fd95bc993fb71079c60b823f190cfc23a953d460
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Sep 8 11:57:35 2009 -0400

    BasedOnObj can return undef

diff --git a/share/html/Admin/Elements/AddCustomFieldValue b/share/html/Admin/Elements/AddCustomFieldValue
index 8818a19..e768e3e 100755
--- a/share/html/Admin/Elements/AddCustomFieldValue
+++ b/share/html/Admin/Elements/AddCustomFieldValue
@@ -66,7 +66,7 @@
 % if ( $CustomField->Type ne 'Combobox' ) {
 <td>
 % my $BasedOnObj = $CustomField->BasedOnObj;
-%   if ( $BasedOnObj->id ) {
+%   if ( $BasedOnObj and $BasedOnObj->id ) {
 <& /Elements/EditCustomField, CustomField => $BasedOnObj, Rows => 1, NamePrefix => "$paramtag-BasedOn-", Default => "" &>
 %   } else {
 <input type="text" size="10" name="<% $paramtag %>-Category" value="" />

-----------------------------------------------------------------------


More information about the Rt-commit mailing list