From: ivan Date: Mon, 6 Jul 2009 00:10:49 +0000 (+0000) Subject: doh X-Git-Tag: root_of_svc_elec_features~1062 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=ff023eb486cc3000d1ee4a2186b8748e1fcbdbb6 doh --- diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html index fcc5adc2b..2ff583ee1 100644 --- a/httemplate/elements/select-did.html +++ b/httemplate/elements/select-did.html @@ -70,7 +70,7 @@ 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'}->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 c8a653e57..6dd057600 100644 --- a/httemplate/elements/tr-select-did.html +++ b/httemplate/elements/tr-select-did.html @@ -19,12 +19,12 @@ <%init> my %opt = @_; - +warn Dumper(\%opt); 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'}->svcpart; +my $svcpart = $opt{'svcpart'} || $opt{'object'}->cust_svc->svcpart; my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); die "unknown svcpart $svcpart" unless $part_svc;