[Rt-commit] rt branch, admin_ui, updated. 6b497e393c02b0d91fc11a463e0acf6af5c24162
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Dec 24 03:44:09 EST 2009
The branch, admin_ui has been updated
via 6b497e393c02b0d91fc11a463e0acf6af5c24162 (commit)
from 3138398faf72406ad50a8d3e3c705f712c62f0b0 (commit)
Summary of changes:
lib/RT/Action/SelectObjectCustomFields.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 6b497e393c02b0d91fc11a463e0acf6af5c24162
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Dec 24 16:43:54 2009 +0800
make label more useful
diff --git a/lib/RT/Action/SelectObjectCustomFields.pm b/lib/RT/Action/SelectObjectCustomFields.pm
index c6fef8c..52a2d3e 100644
--- a/lib/RT/Action/SelectObjectCustomFields.pm
+++ b/lib/RT/Action/SelectObjectCustomFields.pm
@@ -16,10 +16,12 @@ sub arguments {
default_value => $self->object->id,
};
+ my ( $object_name ) = $self->object->lookup_type =~ /RT::Model::(\w+)-/;
$args->{objects} = {
render_as => 'Checkboxes',
default_value => defer { $self->default_value },
available_values => defer { $self->available_values },
+ label => _($object_name),
};
return $args;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list