[Rt-commit] [svn] r1952 - rt/branches/3.3-TESTING/lib/RT
tla at pallas.eruditorum.org
tla at pallas.eruditorum.org
Thu Dec 2 18:16:18 EST 2004
Author: tla
Date: Thu Dec 2 18:16:17 2004
New Revision: 1952
Modified:
rt/branches/3.3-TESTING/lib/RT/CustomField_Overlay.pm
Log:
If First is undef on account of there not being a custom field of that
name, the Content() method cannot be called on it, so check for mere
existence before we try.
Modified: rt/branches/3.3-TESTING/lib/RT/CustomField_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/CustomField_Overlay.pm (original)
+++ rt/branches/3.3-TESTING/lib/RT/CustomField_Overlay.pm Thu Dec 2 18:16:17 2004
@@ -245,7 +245,7 @@
# We only want one entry.
$CFs->RowsPerPage(1);
- unless ($CFs->First->id) {
+ unless ($CFs->First) {
return(0, $self->loc('Custom field not found'));
}
return($self->Load($CFs->First->id));
More information about the Rt-commit
mailing list