diff options
author | ivan <ivan> | 2010-07-27 06:51:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-27 06:51:44 +0000 |
commit | 2bbfc3379be19a01094d55ac6ba53a1360f1797f (patch) | |
tree | ebd884d0194fea8f8bae2d576026b5c2efd1eda6 /httemplate/misc | |
parent | 2b96da0344fe5f46caf80257890312de444d935b (diff) |
extend maestro status API for the multi-service scenario, RT#9334
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/maestro-customer_status.cgi | 4 | ||||
-rw-r--r-- | httemplate/misc/maestro-customer_status.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/misc/maestro-customer_status.cgi b/httemplate/misc/maestro-customer_status.cgi index 8e82a02de..ffeb53c91 100644 --- a/httemplate/misc/maestro-customer_status.cgi +++ b/httemplate/misc/maestro-customer_status.cgi @@ -7,10 +7,10 @@ my($custnum, $svcnum) = $cgi->keywords; if ( $custnum =~ /^(\d+)$/ ) { use FS::Maestro; - $return = FS::Maestro::customer_status($1, $svcnum); + $uri->query_form( FS::Maestro::customer_status($1) ); } else { - $return = { 'error' => 'No custnum' }; + $uri->query_form( { 'error' => 'No custnum' } ); } </%init> diff --git a/httemplate/misc/maestro-customer_status.html b/httemplate/misc/maestro-customer_status.html index 0c45bcd4b..8acae2b2a 100644 --- a/httemplate/misc/maestro-customer_status.html +++ b/httemplate/misc/maestro-customer_status.html @@ -3,11 +3,11 @@ my $return; -my($query) = $cgi->keywords; -if ( $query =~ /^(\d+)$/ ) { +my($custnum, $svcnum) = $cgi->keywords; +if ( $custnum =~ /^(\d+)$/ ) { use FS::Maestro; - $return = FS::Maestro::customer_status($1); + $return = FS::Maestro::customer_status($1, $svcnum); } else { $return = { 'error' => 'No custnum' }; |