[freeside-commits] freeside/httemplate/edit/process svc_domain.cgi, 1.8, 1.9
Ivan,,,
ivan at wavetail.420.am
Sun Feb 21 19:22:16 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv3575/httemplate/edit/process
Modified Files:
svc_domain.cgi
Log Message:
communigate: domain aliases, enabled services, RT#7083
Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_domain.cgi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- svc_domain.cgi 17 Feb 2010 08:30:06 -0000 1.8
+++ svc_domain.cgi 22 Feb 2010 03:22:14 -0000 1.9
@@ -15,6 +15,18 @@
$cgi->param('svcnum') =~ /^(\d*)$/ or die "Illegal svcnum!";
my $svcnum = $1;
+#unmunge cgp_accessmodes (falze laziness-ish w/part_svc.pm::process & svc_acct)
+unless ( $cgi->param('cgp_accessmodes') ) {
+ $cgi->param('cgp_accessmodes',
+ join(' ',
+ sort map { /^cgp_accessmodes_([\w\/]+)$/ or die "no way"; $1; }
+ grep $cgi->param($_),
+ grep /^cgp_accessmodes_([\w\/]+)$/,
+ $cgi->param()
+ )
+ );
+}
+
my $new = new FS::svc_domain ( {
map {
$_, scalar($cgi->param($_));
More information about the freeside-commits
mailing list