X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fqual.cgi;h=7b718e498a76ac86695643d1f69f28cfb625cf5a;hp=cf4f3d1117b08e780b45f759da043efc3fc9119f;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/httemplate/search/qual.cgi b/httemplate/search/qual.cgi index cf4f3d111..7b718e498 100755 --- a/httemplate/search/qual.cgi +++ b/httemplate/search/qual.cgi @@ -1,4 +1,4 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'title' => 'Qualifications', 'name_singular' => 'qualification', 'query' => { 'table' => 'qual', @@ -21,19 +21,11 @@ my $self = shift; $self->status_long; }, - sub { - my $self = shift; - my $cust_or_prospect = $self->cust_or_prospect; - return $cust_or_prospect->name - if $cust_or_prospect->get('custnum'); - return "Prospect #".$cust_or_prospect->prospectnum - if $cust_or_prospect->get('prospectnum'); - ''; - }, - 'phonenum', + sub { shift->cust_or_prospect->name }, + sub { shift->phonenum || '(none - dry loop)' }, sub { my $self = shift; - my %location_hash = $self->location; + my %location_hash= $self->location_hash; # ugh... if ( %location_hash ) { my $loc = new FS::cust_location(\%location_hash); @@ -59,8 +51,8 @@ '', '', ], - ) -%> + +&> <%init> die "access denied"