diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-10-28 15:17:54 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-10-28 15:17:54 -0700 |
commit | 9c00bcb663c6b868c3da83af917163db58c73b93 (patch) | |
tree | fe6ecfec684ecab454aa7c1c1a6c39d89e1cae50 | |
parent | 5acdbc586f8d716b1c8a8fd4ead3d73af54021fd (diff) |
config for svc_hardware dup checking, RT#81534
-rw-r--r-- | FS/FS/svc_hardware.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/svc_hardware.pm b/FS/FS/svc_hardware.pm index 012078e21..cbf3ddfa9 100644 --- a/FS/FS/svc_hardware.pm +++ b/FS/FS/svc_hardware.pm @@ -238,9 +238,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.")"; } |