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 | |
parent | 42ad860da02665aa21193d3bc418ef03e96727fb (diff) |
mysql compat: cgp_rule_condition s/condition/conditionname/
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/cgp_rule.html | 4 | ||||
-rw-r--r-- | httemplate/edit/process/cgp_rule.html | 2 |
2 files changed, 3 insertions, 3 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, }; diff --git a/httemplate/edit/process/cgp_rule.html b/httemplate/edit/process/cgp_rule.html index f427b6ccf..965341384 100644 --- a/httemplate/edit/process/cgp_rule.html +++ b/httemplate/edit/process/cgp_rule.html @@ -4,7 +4,7 @@ 'process_o2m' => [ { 'table' => 'cgp_rule_condition', - 'fields' => [qw( condition op params )], + 'fields' => [qw( conditionname op params )], }, { 'table' => 'cgp_rule_action', |