X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-did.html;h=2ff583ee1a9d98bc89194b2fca999509d4630f04;hb=ff023eb486cc3000d1ee4a2186b8748e1fcbdbb6;hp=a8ef09d610997597f8950fe934d84263beed099e;hpb=3c4456c1de9701d93b64fcbadcfaca598a0347d8;p=freeside.git diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html index a8ef09d61..2ff583ee1 100644 --- a/httemplate/elements/select-did.html +++ b/httemplate/elements/select-did.html @@ -18,8 +18,9 @@ Example: <% include('/elements/select-state.html', - 'country' => $country, - 'empty' => 'Select state', + 'country' => $country, + 'disable_empty' => 0, + 'empty_label' => 'Select state', ) %> @@ -67,8 +68,9 @@ 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'}->cust_svc->svcpart; my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); die "unknown svcpart $svcpart" unless $part_svc;