X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcgp_rule.html;h=5326587cb9c48586a2423774d074bca4008b2a16;hb=41d0660124cf3965a4a2b4706d02e382ac4cbf01;hp=3880b56b948cbedae64eb1080dadfaf6991f3a20;hpb=37591b61f8ad6fc5c5acb2fd8f520d2dbe4f1539;p=freeside.git diff --git a/httemplate/edit/process/cgp_rule.html b/httemplate/edit/process/cgp_rule.html index 3880b56b9..5326587cb 100644 --- a/httemplate/edit/process/cgp_rule.html +++ b/httemplate/edit/process/cgp_rule.html @@ -1,6 +1,22 @@ <% include( 'elements/process.html', - 'table' => 'cgp_rule', - 'redirect' => $redirect, + 'table' => 'cgp_rule', + 'redirect' => $redirect, + 'process_o2m' => [ + { + 'table' => 'cgp_rule_condition', + 'fields' => [qw( conditionname op params )], + }, + { + 'table' => 'cgp_rule_action', + 'fields' => [qw( action params )], + }, + ], + 'noerror_callback' => sub { + my( $cgi, $object ) = @_; + my $error = $object->svc_export; + #shit, not a good place for error handling :/ + die $error if $error; + }, ) %> <%init>