[Rt-commit] rt branch, create-action, updated. 8c8cef0544422cdef377504b4325bedf1ae2d893

sartak at bestpractical.com sartak at bestpractical.com
Mon Nov 9 16:55:46 EST 2009


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.com>
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,
         );
 

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


More information about the Rt-commit mailing list