[Rt-commit] rt branch, create-action, updated. 774b5f38bc06b1f409aafd7c3a8d90ac6323fb9e
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 29 15:25:46 EDT 2009
The branch, create-action has been updated
via 774b5f38bc06b1f409aafd7c3a8d90ac6323fb9e (commit)
from 052505249e11b5ff8fe51945836233c9076dd3d7 (commit)
Summary of changes:
lib/RT/Action/CreateTicket.pm | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 774b5f38bc06b1f409aafd7c3a8d90ac6323fb9e
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 29 15:25:26 2009 -0400
We don't use "defaults" here we just include the parameters
diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index e677de2..126627c 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -213,14 +213,12 @@ sub _add_custom_fields {
my $render_as = $cf->type_for_rendering;
my %args = (
name => $cf->name,
- defaults => {
- render_as => $render_as,
- },
+ render_as => $render_as,
);
if ($render_as =~ /Select/i) {
my @valid_values = 'XXX';
- $args{defaults}{valid_values} = \@valid_values;
+ $args{valid_values} = \@valid_values;
}
$self->$method(
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list