From 33d0ac01c47763fdc394c2b477c7e8aadbbe4156 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 10 Jul 2009 17:50:26 +0000 Subject: [PATCH] fix svc_phone provisioning! --- httemplate/elements/select-did.html | 4 +++- httemplate/elements/tr-select-did.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html index 2ff583ee1..af8d59513 100644 --- a/httemplate/elements/select-did.html +++ b/httemplate/elements/select-did.html @@ -70,7 +70,9 @@ my $country = $conf->config('countrydefault') || 'US'; #false laziness w/tr-select-did.html #XXX make sure this comes through on errors too -my $svcpart = $opt{'svcpart'} || $opt{'object'}->cust_svc->svcpart; +my $svcpart = $opt{'svcpart'} + || $opt{'object'}->svcpart + || $opt{'object'}->cust_svc->svcpart; my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); die "unknown svcpart $svcpart" unless $part_svc; diff --git a/httemplate/elements/tr-select-did.html b/httemplate/elements/tr-select-did.html index 6dd057600..e866d0d7e 100644 --- a/httemplate/elements/tr-select-did.html +++ b/httemplate/elements/tr-select-did.html @@ -24,7 +24,9 @@ my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; #false laziness w/select-did.html #XXX make sure this comes through on errors too -my $svcpart = $opt{'svcpart'} || $opt{'object'}->cust_svc->svcpart; +my $svcpart = $opt{'svcpart'} + || $opt{'object'}->svcpart + || $opt{'object'}->cust_svc->svcpart; my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); die "unknown svcpart $svcpart" unless $part_svc; -- 2.11.0