[Rt-commit] rt branch, 4.2/custom-field-lookup-type-class-method, created. rt-4.1.6-141-g1ff3f2b

Thomas Sibley trs at bestpractical.com
Wed Feb 6 20:35:46 EST 2013


The branch, 4.2/custom-field-lookup-type-class-method has been created
        at  1ff3f2b0a97d1e336ced7542ce2b0201ff5309fc (commit)

- Log -----------------------------------------------------------------
commit 1ff3f2b0a97d1e336ced7542ce2b0201ff5309fc
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Feb 6 17:25:22 2013 -0800

    Allow CustomFieldLookupType to be called as a class method

diff --git a/lib/RT/Record.pm b/lib/RT/Record.pm
index c9bbb94..49eca7e 100644
--- a/lib/RT/Record.pm
+++ b/lib/RT/Record.pm
@@ -1832,7 +1832,7 @@ Returns the path RT uses to figure out which custom fields apply to this object.
 
 sub CustomFieldLookupType {
     my $self = shift;
-    return ref($self);
+    return ref($self) || $self;
 }
 
 

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


More information about the Rt-commit mailing list