X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fselect-did.html;h=a8ef09d610997597f8950fe934d84263beed099e;hp=999274feae905c4711ba544396717ab8f74300dd;hb=3c4456c1de9701d93b64fcbadcfaca598a0347d8;hpb=9a90f2af0663c9b4e9611e044fd25349425d1aec diff --git a/httemplate/elements/select-did.html b/httemplate/elements/select-did.html index 999274fea..a8ef09d61 100644 --- a/httemplate/elements/select-did.html +++ b/httemplate/elements/select-did.html @@ -4,7 +4,10 @@ Example: include('/elements/select-did.html', 'field' => 'phonenum', + 'svcpart' => 5, + #OR + 'object' => $svc_phone, ); @@ -65,7 +68,7 @@ my $conf = new FS::Conf; my $country = $conf->config('countrydefault') || 'US'; #XXX make sure this comes through on errors too -my $svcpart = $opt{'object'}->svcpart; +my $svcpart = $opt{'svcpart'} || $opt{'object'}->svcpart; my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } ); die "unknown svcpart $svcpart" unless $part_svc;