[freeside-commits] branch FREESIDE_3_BRANCH updated. a7cdcc2e497eb862d36becb93a14fb32037260be
Ivan
ivan at 420.am
Sat Nov 7 12:32:36 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via a7cdcc2e497eb862d36becb93a14fb32037260be (commit)
from e2d16c850d8857567023f10b8c57daf0570c6a8e (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 a7cdcc2e497eb862d36becb93a14fb32037260be
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