summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2007-02-13 22:08:35 +0000
committerivan <ivan>2007-02-13 22:08:35 +0000
commit43131261a1aa72d2a42b778f7fa0180bdef6d685 (patch)
tree0f2e4b5b8ce360ebcaac39d5d3235bbd500e15b5 /httemplate/edit
parentb16796957e3eefd03b4d6c7a35ce722ad794e3b7 (diff)
use a domsvc when passed in, patch from Sean Hanson/S1
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi16
1 files changed, 10 insertions, 6 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 26d6debcd..a4a70ca22 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -114,12 +114,16 @@
%
% #$error ||= $cust_svc->check;
%
-% $svc_acct = new FS::svc_acct ( {
-% 'svcpart' => $svcpart,
-% 'username' => $cgi->param('username'),
-% '_password' => $cgi->param('_password'),
-% 'popnum' => $cgi->param('popnum'),
-% } );
+% my %svc_acct = (
+% 'svcpart' => $svcpart,
+% 'username' => $cgi->param('username'),
+% '_password' => $cgi->param('_password'),
+% 'popnum' => $cgi->param('popnum'),
+% );
+% $svc_acct{'domsvc'} = $cgi->param('domsvc')
+% if $cgi->param('domsvc');
+%
+% $svc_acct = new FS::svc_acct \%svc_acct;
%
% #and just in case you were silly
% $svc_acct->svcpart($svcpart);