[freeside-commits] branch FREESIDE_4_BRANCH updated. 37037466136f2c2826e02b6b9ac6719919074d2e

Ivan Kohler ivan at freeside.biz
Sun Oct 28 15:18:15 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  37037466136f2c2826e02b6b9ac6719919074d2e (commit)
      from  5209a62a200d4c4ea0206c5d0d180014c045d102 (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 37037466136f2c2826e02b6b9ac6719919074d2e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Oct 28 15:18:10 2018 -0700

    svc_hardware dup checking, RT#81534

diff --git a/FS/FS/svc_hardware.pm b/FS/FS/svc_hardware.pm
index a67647366..aa411e039 100644
--- a/FS/FS/svc_hardware.pm
+++ b/FS/FS/svc_hardware.pm
@@ -237,9 +237,9 @@ sub _check_duplicate {
     }
   }
 
-  if ( $self->serialnum ) {
+  if ( $self->serial ) {
     my @dup_serial;
-    @dup_serial = $self->find_duplicates('global', 'typenum', 'serialnum');
+    @dup_serial = $self->find_duplicates('global', 'typenum', 'serial');
     if ( @dup_serial ) {
       return "Serial number in use (svcnum ".$dup_serial[0]->svcnum.")";
     }

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

Summary of changes:
 FS/FS/svc_hardware.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list