Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

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

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


sunnavy at bestpractical

Feb 28, 2012, 8:30 AM

Post #1 of 1 (181 views)
Permalink
rt branch, 4.0/object-in-add-custom-field-value-error-msg, created. rt-4.0.5-79-gda5b0ad

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>
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'}
)
);
}

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.