summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-did.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select-did.html')
-rw-r--r--httemplate/elements/select-did.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html
index 069516476..af8d59513 100644
--- a/httemplate/elements/select-did.html
+++ b/httemplate/elements/select-did.html
@@ -68,8 +68,11 @@ my %opt = @_;
my $conf = new FS::Conf;
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'}->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;