[freeside-commits] branch FREESIDE_4_BRANCH updated. 9be553c793b473f85bd4061faa6635adb21f2a08
Ivan
ivan at 420.am
Sat Nov 7 12:32:34 PST 2015
The branch, FREESIDE_4_BRANCH has been updated
via 9be553c793b473f85bd4061faa6635adb21f2a08 (commit)
from e6816187d01802db8abdf31bd6d0de55bd081021 (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 9be553c793b473f85bd4061faa6635adb21f2a08
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sat Nov 7 12:31:42 2015 -0800
fix 404 cities.cgi / self-service dynamic addresses
diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm
index 3c3bf4c..493e0c0 100644
--- a/FS/FS/ClientAPI/MasonComponent.pm
+++ b/FS/FS/ClientAPI/MasonComponent.pm
@@ -21,6 +21,7 @@ my %allowed_comps = map { $_=>1 } qw(
/misc/phonenums.cgi
/misc/states.cgi
/misc/counties.cgi
+ /misc/cities.cgi
/misc/svc_acct-domains.cgi
/misc/part_svc-columns.cgi
/edit/elements/svc_forward.html
diff --git a/fs_selfservice/FS-SelfService/cgi/misc/cities.cgi b/fs_selfservice/FS-SelfService/cgi/misc/cities.cgi
new file mode 100755
index 0000000..07753f3
--- /dev/null
+++ b/fs_selfservice/FS-SelfService/cgi/misc/cities.cgi
@@ -0,0 +1,18 @@
+#!/usr/bin/perl -w
+
+use strict;
+use CGI;
+use FS::SelfService qw( mason_comp );
+
+my $cgi = new CGI;
+
+my $rv = mason_comp( 'comp' => '/misc/cities.cgi',
+ 'query_string' => $cgi->query_string, #pass CGI params...
+ );
+
+#hmm.
+my $output = $rv->{'error'} || $rv->{'output'};
+
+print $cgi->header( '-expires' => 'now' ).
+ $output;
+
-----------------------------------------------------------------------
Summary of changes:
FS/FS/ClientAPI/MasonComponent.pm | 1 +
fs_selfservice/FS-SelfService/cgi/misc/{states.cgi => cities.cgi} | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
copy fs_selfservice/FS-SelfService/cgi/misc/{states.cgi => cities.cgi} (84%)
More information about the freeside-commits
mailing list