X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fqual.cgi;fp=httemplate%2Fsearch%2Fqual.cgi;h=1803ab8270a00a5aef5b9166a8ffded083d21e22;hb=d20a6ac966a4236ed9115dd611739305e5879204;hp=cf4f3d1117b08e780b45f759da043efc3fc9119f;hpb=f0f1d277947922b81bcc4d77971a43ed125d72f5;p=freeside.git diff --git a/httemplate/search/qual.cgi b/httemplate/search/qual.cgi index cf4f3d111..1803ab827 100755 --- a/httemplate/search/qual.cgi +++ b/httemplate/search/qual.cgi @@ -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'); - ''; - }, + sub { shift->cust_or_prospect->name }, 'phonenum', 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);