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

Mailing List Archive: Request Tracker: Commit

rt branch, create-action, updated. 8c8cef0544422cdef377504b4325bedf1ae2d893

 

 

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


sartak at bestpractical

Nov 9, 2009, 1:55 PM

Post #1 of 1 (307 views)
Permalink
rt branch, create-action, updated. 8c8cef0544422cdef377504b4325bedf1ae2d893

The branch, create-action has been updated
via 8c8cef0544422cdef377504b4325bedf1ae2d893 (commit)
from 4fbf97ebb2b277ea5733f432d810f1aad6c40ccf (commit)

Summary of changes:
lib/RT/Action/WithCustomFields.pm | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 8c8cef0544422cdef377504b4325bedf1ae2d893
Author: Shawn M Moore <sartak [at] bestpractical>
Date: Mon Nov 9 16:55:31 2009 -0500

Use cf_ID for custom field names to avoid label collisions

diff --git a/lib/RT/Action/WithCustomFields.pm b/lib/RT/Action/WithCustomFields.pm
index 92e4472..a0b8083 100644
--- a/lib/RT/Action/WithCustomFields.pm
+++ b/lib/RT/Action/WithCustomFields.pm
@@ -11,8 +11,11 @@ sub _add_custom_fields {

while (my $cf = $cfs->next) {
my $render_as = $cf->type_for_rendering;
+ my $name = 'cf_' . $cf->id;
+
my %args = (
- name => $cf->name,
+ name => $name,
+ label => $cf->name,
render_as => $render_as,
);


-----------------------------------------------------------------------
_______________________________________________
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.