[freeside-commits] branch master updated. 4f3565bf10ff89ceca0ebb9d3e1b63674f69ce60

Christopher Burger burgerc at 420.am
Wed Jul 12 10:22:32 PDT 2017


The branch, master has been updated
       via  4f3565bf10ff89ceca0ebb9d3e1b63674f69ce60 (commit)
      from  d2d8c2d81508b6e26e2a199c00819f392476d6fb (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 4f3565bf10ff89ceca0ebb9d3e1b63674f69ce60
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Wed Jul 12 13:21:55 2017 -0400

    RT# 76307 - changed from returning an error to die on error.

diff --git a/FS/FS/part_event/Action/addtag.pm b/FS/FS/part_event/Action/addtag.pm
index 947f0c3..c4e9820 100644
--- a/FS/FS/part_event/Action/addtag.pm
+++ b/FS/FS/part_event/Action/addtag.pm
@@ -42,9 +42,7 @@ sub do_action {
       my $cust_tag = new FS::cust_tag { 'tagnum'  => $tagnum,
                                         'custnum' => $object->custnum, };
       my $error = $cust_tag->insert;
-      if ( $error ) {
-        return $error;
-      }
+      die $error if $error;
     }
   }
   '';

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

Summary of changes:
 FS/FS/part_event/Action/addtag.pm |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)




More information about the freeside-commits mailing list