X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fqual.cgi;h=7133ef05606e1267c6f63d62a811e39d438da4ba;hp=cf4f3d1117b08e780b45f759da043efc3fc9119f;hb=c3da5cf1caa244937d280e0f406927103beef148;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/httemplate/search/qual.cgi b/httemplate/search/qual.cgi index cf4f3d111..7133ef056 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'); - ''; - }, - '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);