[freeside-commits] branch master updated. 27b3914cd3e3255a6bdbe777eff32b5d0f596bb4

Mark Wells mark at 420.am
Wed Feb 11 23:00:00 PST 2015


The branch, master has been updated
       via  27b3914cd3e3255a6bdbe777eff32b5d0f596bb4 (commit)
      from  a1ce9d2d64481946c6e4ba317a8c4631448dc842 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 27b3914cd3e3255a6bdbe777eff32b5d0f596bb4
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Feb 11 22:59:31 2015 -0800

    properly handle errors from multiple process_o2m/m2m actions, #33490

diff --git a/httemplate/edit/process/elements/process.html b/httemplate/edit/process/elements/process.html
index eba0304..69bd605 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),
                                    );
     }

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/process/elements/process.html |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list