[Rt-commit] rt branch, 4.0/object-in-add-custom-field-value-error-msg, created. rt-4.0.5-79-gda5b0ad

? sunnavy sunnavy at bestpractical.com
Tue Feb 28 11:30:11 EST 2012


The branch, 4.0/object-in-add-custom-field-value-error-msg has been created
        at  da5b0ad85f64cc0bc48e697e760dedc805cfddef (commit)

- Log -----------------------------------------------------------------
commit da5b0ad85f64cc0bc48e697e760dedc805cfddef
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Feb 28 18:59:23 2012 +0800

    $args{Field} could be a cf object
    
    we pass cf object to $args{Field} least in /REST/1.0/Forms/ticket/default

diff --git a/lib/RT/Record.pm b/lib/RT/Record.pm
index 29cff47..b6b403b 100644
--- a/lib/RT/Record.pm
+++ b/lib/RT/Record.pm
@@ -1605,7 +1605,7 @@ sub _AddCustomFieldValue {
             0,
             $self->loc(
                 "Custom field [_1] does not apply to this object",
-                $args{'Field'}
+                ref $args{'Field'} ? $args{'Field'}->id : $args{'Field'}
             )
         );
     }

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


More information about the Rt-commit mailing list