[Rt-commit] rt branch, admin_ui, updated. 877073fc5fbb7f7b8cfcd4d5855b6900e0452dc6

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Dec 4 01:54:32 EST 2009


The branch, admin_ui has been updated
       via  877073fc5fbb7f7b8cfcd4d5855b6900e0452dc6 (commit)
      from  794c655080e69f5548863a9e484a3760e098042f (commit)

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

- Log -----------------------------------------------------------------
commit 877073fc5fbb7f7b8cfcd4d5855b6900e0452dc6
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Dec 4 14:54:24 2009 +0800

    tiny label tweak

diff --git a/lib/RT/Action/SelectCustomFields.pm b/lib/RT/Action/SelectCustomFields.pm
index f209b4e..40d734e 100644
--- a/lib/RT/Action/SelectCustomFields.pm
+++ b/lib/RT/Action/SelectCustomFields.pm
@@ -58,18 +58,20 @@ sub arguments {
     }
 
     if ($global_cfs) {
-        $args->{global} = {
+        $args->{global_cfs} = {
             default_value    => [@global],
             available_values => [@global],
             render_as        => 'Checkboxes',
             render_mode      => 'read',
+            label            => _('Global Custom Fields'),
         };
     }
-    $args->{select} = {
+    $args->{cfs} = {
         default_value    => [@selected],
         available_values => [ @selected, @unselected ],
         render_as        => 'Checkboxes',
         multiple         => 1,
+        label            => _('Custom Fields'),
     };
 
     return $args;
@@ -108,8 +110,8 @@ sub take_action {
     }
 
     my @ids;
-    my $value = $self->argument_value('select');
-    if ( UNIVERSAL::isa( $self->argument_value('select'), 'ARRAY' ) ) {
+    my $value = $self->argument_value('cfs');
+    if ( UNIVERSAL::isa( $value, 'ARRAY' ) ) {
         @ids = @$value;
     }
     else {

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


More information about the Rt-commit mailing list