diff options
author | Mark Wells <mark@freeside.biz> | 2015-02-11 22:59:31 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-02-11 22:59:31 -0800 |
commit | 27b3914cd3e3255a6bdbe777eff32b5d0f596bb4 (patch) | |
tree | 6e011b3731875b09b998697ddc4b8f46d72185b8 /httemplate/edit/process/elements | |
parent | a1ce9d2d64481946c6e4ba317a8c4631448dc842 (diff) |
properly handle errors from multiple process_o2m/m2m actions, #33490
Diffstat (limited to 'httemplate/edit/process/elements')
-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 eba03041c..69bd605f6 100644 --- a/httemplate/edit/process/elements/process.html +++ b/httemplate/edit/process/elements/process.html @@ -315,7 +315,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 ); } } @@ -357,7 +357,7 @@ foreach my $value ( @values ) { ); } - $error = $new->process_o2m( %{ $process_o2m }, + $error ||= $new->process_o2m( %{ $process_o2m }, 'params' => scalar($cgi->Vars), ); } |