diff options
author | jeff <jeff> | 2009-03-13 18:22:21 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-03-13 18:22:21 +0000 |
commit | 64916ad920572e19351df79127d4822fab57f621 (patch) | |
tree | 7ecfa41dab4b65a9ca56e3fe54e590f35fe343e8 | |
parent | 2ea58badb5e0e2985a796f8b614912db9b6e43bf (diff) |
prevent more duplicate MACs from sneaking in in the interim
-rwxr-xr-x | FS/FS/svc_broadband.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm index b808527a1..eb2964635 100755 --- a/FS/FS/svc_broadband.pm +++ b/FS/FS/svc_broadband.pm @@ -217,6 +217,10 @@ sub check { ; return $error if $error; + #redundant, but prevents further problems until column constraint in place + return "MAC already in use" + if scalar( qsearch( 'svc_broadband', { 'mac_addr', $self->mac_addr } ) ); + if($self->speed_up < 0) { return 'speed_up must be positive'; } if($self->speed_down < 0) { return 'speed_down must be positive'; } |