diff options
author | ivan <ivan> | 2010-06-07 00:10:27 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-07 00:10:27 +0000 |
commit | da99804133e55d5ce02402645b593a6de06d1947 (patch) | |
tree | da8e3e65f2801b2d3f8c60a48054350bfc12bd6b /httemplate/edit/cgp_rule.html | |
parent | 42ad860da02665aa21193d3bc418ef03e96727fb (diff) |
mysql compat: cgp_rule_condition s/condition/conditionname/
Diffstat (limited to 'httemplate/edit/cgp_rule.html')
-rw-r--r-- | httemplate/edit/cgp_rule.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/cgp_rule.html b/httemplate/edit/cgp_rule.html index d9c19a150..41275aba7 100644 --- a/httemplate/edit/cgp_rule.html +++ b/httemplate/edit/cgp_rule.html @@ -51,7 +51,7 @@ my %opt = @_; my $m2_error_callback_cond = sub { my($cgi, $object) = @_; - my @fields = qw( condition op params ); + my @fields = qw( conditionname op params ); my @gfields = ( '', map "_$_", @fields ); map { @@ -83,7 +83,7 @@ my $m2_error_callback_action = sub { if ( /^ruleactionnum(\d+)$/ ) { my $num = $1; if ( grep $cgi->param("ruleactionnum$num$_"), @gfields ) { - my $x = new FS::cgp_rule_condition { + my $x = new FS::cgp_rule_action { 'ruleactionnum' => $cgi->param("ruleactionnum$num"), map { $_ => scalar($cgi->param("ruleactionnum${num}_$_")) } @fields, }; |