[freeside-commits] branch FREESIDE_3_BRANCH updated. bcf01bf689f81ab879c9241a902535f381c86095
Ivan
ivan at 420.am
Mon Jun 1 11:31:45 PDT 2015
The branch, FREESIDE_3_BRANCH has been updated
via bcf01bf689f81ab879c9241a902535f381c86095 (commit)
from 38f947640357484d1f38c2cb8ffe1924446ede73 (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 bcf01bf689f81ab879c9241a902535f381c86095
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Jun 1 11:31:43 2015 -0700
svc_alarm.cs_receiver is <= 9 digits so we don't perl barf trying to store a bigint, RT#35176
diff --git a/FS/FS/svc_alarm.pm b/FS/FS/svc_alarm.pm
index 0624f18..2332f11 100644
--- a/FS/FS/svc_alarm.pm
+++ b/FS/FS/svc_alarm.pm
@@ -214,6 +214,10 @@ sub check {
;
return $error if $error;
+ #really just an signed int, but to discourage storing other data (e.g. phone)
+ return 'CS Receiver must be 9 digits or less'
+ if $self->cs_receiver =~ /\d{10}/;
+
$self->SUPER::check;
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/svc_alarm.pm | 4 ++++
1 file changed, 4 insertions(+)
More information about the freeside-commits
mailing list