[freeside-commits] branch master updated. be432f42beceb2ad766fa9b5fcc671ab516dd707
Ivan Kohler
ivan at freeside.biz
Sun Oct 28 15:18:11 PDT 2018
The branch, master has been updated
via be432f42beceb2ad766fa9b5fcc671ab516dd707 (commit)
from 90654bac7f8cbeacd135756396d1673941fe33ca (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 be432f42beceb2ad766fa9b5fcc671ab516dd707
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Oct 28 15:18:07 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