[Rt-commit] rt branch, admin_ui, updated. 28a49dfe490a421c7749ff083c85041eddeefbe4
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Dec 15 06:32:47 EST 2009
The branch, admin_ui has been updated
via 28a49dfe490a421c7749ff083c85041eddeefbe4 (commit)
from 9029e25ae04c307ef25348ce164f2ac7b455f0b5 (commit)
Summary of changes:
lib/RT/Action/EditWorkflowInterface.pm | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 28a49dfe490a421c7749ff083c85041eddeefbe4
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Dec 15 19:32:23 2009 +0800
tweak EditWorkflowInterface action
diff --git a/lib/RT/Action/EditWorkflowInterface.pm b/lib/RT/Action/EditWorkflowInterface.pm
index 3d244ff..e9436e5 100644
--- a/lib/RT/Action/EditWorkflowInterface.pm
+++ b/lib/RT/Action/EditWorkflowInterface.pm
@@ -4,6 +4,7 @@ use warnings;
package RT::Action::EditWorkflowInterface;
use base qw/RT::Action Jifty::Action/;
use RT::Workflow;
+use Scalar::Defer;
__PACKAGE__->mk_accessors('name');
@@ -24,7 +25,9 @@ sub arguments {
my @next = $schema->transitions($from);
for my $to (@next) {
$args->{ $from . '___label___' . $to } = {
- default_value => $schema->transition_label( $from => $to ),
+ default_value => defer {
+ $schema->transition_label( $from => $to );
+ },
label => '',
};
}
@@ -34,7 +37,9 @@ sub arguments {
my @next = $schema->transitions($from);
for my $to (@next) {
$args->{ $from . '___action___' . $to } = {
- default_value => $schema->transition_action( $from => $to ),
+ default_value => defer {
+ $schema->transition_action( $from => $to );
+ },
render_as => 'Select',
available_values => [
{
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list