[Rt-commit] rt branch, admin_ui, updated. c96f2234bb26833b7cb3987452108c1b60374098
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Nov 27 01:45:34 EST 2009
The branch, admin_ui has been updated
via c96f2234bb26833b7cb3987452108c1b60374098 (commit)
from 203337b9eb8a314bf5ba4eb5bcbe081d4c77de11 (commit)
Summary of changes:
lib/RT/View/Form/Field/SelectStatusSchema.pm | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit c96f2234bb26833b7cb3987452108c1b60374098
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Nov 27 14:45:25 2009 +0800
subclass current_value method for SelectStatusSchema
diff --git a/lib/RT/View/Form/Field/SelectStatusSchema.pm b/lib/RT/View/Form/Field/SelectStatusSchema.pm
index d8b5c14..cf7db06 100644
--- a/lib/RT/View/Form/Field/SelectStatusSchema.pm
+++ b/lib/RT/View/Form/Field/SelectStatusSchema.pm
@@ -7,6 +7,13 @@ sub _available_values {
return [ map { { display => $_, value => $_ } } RT::Workflow->list ];
}
+sub current_value {
+ my $self = shift;
+ my $current_value = $self->SUPER::current_value(@_);
+
+ $current_value = $current_value->name if ref $current_value;
+ return $current_value;
+}
1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list