diff options
author | Mark Wells <mark@freeside.biz> | 2015-02-11 22:59:54 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-02-11 22:59:54 -0800 |
commit | e04a81044abea1d9bd0a53f96925c9a91e8e01e8 (patch) | |
tree | 062a055f8bd6b92d8a198e815c91dce679427db1 /httemplate/edit/process | |
parent | a4b6fc1db4659ecbbb6a91d5258c6cfb1bc79dfe (diff) |
properly handle errors from multiple process_o2m/m2m actions, #33490
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/elements/process.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/process/elements/process.html b/httemplate/edit/process/elements/process.html index 698540b79..9d8fa79d2 100644 --- a/httemplate/edit/process/elements/process.html +++ b/httemplate/edit/process/elements/process.html @@ -308,7 +308,7 @@ foreach my $value ( @values ) { warn "$me processing m2m:\n". Dumper( %$process_m2m ) if $opt{'debug'}; - $error = $new->process_m2m( %$process_m2m ); + $error ||= $new->process_m2m( %$process_m2m ); } } @@ -350,7 +350,7 @@ foreach my $value ( @values ) { ); } - $error = $new->process_o2m( %{ $process_o2m }, + $error ||= $new->process_o2m( %{ $process_o2m }, 'params' => scalar($cgi->Vars), ); } |