diff options
| author | ivan <ivan> | 2010-07-27 06:48:39 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2010-07-27 06:48:39 +0000 |
| commit | 2b96da0344fe5f46caf80257890312de444d935b (patch) | |
| tree | f4c5bcec6a03d4b1d282bb10cf105f2e43390766 /httemplate/misc/maestro-customer_status.cgi | |
| parent | 53d8528049b4374004ee807aaab39d91f7fb107a (diff) | |
extend maestro status API for the multi-service scenario, RT#9334
Diffstat (limited to 'httemplate/misc/maestro-customer_status.cgi')
| -rw-r--r-- | httemplate/misc/maestro-customer_status.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/misc/maestro-customer_status.cgi b/httemplate/misc/maestro-customer_status.cgi index abd0fb48f..8e82a02de 100644 --- a/httemplate/misc/maestro-customer_status.cgi +++ b/httemplate/misc/maestro-customer_status.cgi @@ -3,14 +3,14 @@ my $uri = new URI; -my($query) = $cgi->keywords; -if ( $query =~ /^(\d+)$/ ) { +my($custnum, $svcnum) = $cgi->keywords; +if ( $custnum =~ /^(\d+)$/ ) { use FS::Maestro; - $uri->query_form( FS::Maestro::customer_status($1) ); + $return = FS::Maestro::customer_status($1, $svcnum); } else { - $uri->query_form( { 'error' => 'No custnum' } ); + $return = { 'error' => 'No custnum' }; } </%init> |
