[freeside-commits] branch FREESIDE_3_BRANCH updated. 3ebefed2a6439b87e84cafbb32fbbc72f12a4b55
Ivan
ivan at 420.am
Tue May 30 14:59:18 PDT 2017
The branch, FREESIDE_3_BRANCH has been updated
via 3ebefed2a6439b87e84cafbb32fbbc72f12a4b55 (commit)
from 632056ed03288da5090725d801c54f81ddadca0d (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 3ebefed2a6439b87e84cafbb32fbbc72f12a4b55
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue May 30 14:59:17 2017 -0700
check AU postal codes, RT#75998
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 7e9a2e0..c98de0a 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -2871,6 +2871,13 @@ sub ut_zip {
$self->getfield($field);
$self->setfield($field, "$1 $2");
+ } elsif ( $country eq 'AU' ) {
+
+ $self->getfield($field) =~ /^\s*(\d{4})\s*$/
+ or return gettext('illegal_zip'). " $field for country $country: ".
+ $self->getfield($field);
+ $self->setfield($field, $1);
+
} else {
if ( $self->getfield($field) =~ /^\s*$/
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Record.pm | 7 +++++++
1 file changed, 7 insertions(+)
More information about the freeside-commits
mailing list