[freeside-commits] freeside/httemplate/search qual.cgi,1.3,1.4

Ivan,,, ivan at wavetail.420.am
Sun Mar 13 12:45:39 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv6366/httemplate/search

Modified Files:
	qual.cgi 
Log Message:
qualification search improvements, RT#7111

Index: qual.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/qual.cgi,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- qual.cgi	8 Dec 2010 21:37:45 -0000	1.3
+++ qual.cgi	13 Mar 2011 19:45:37 -0000	1.4
@@ -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); 



More information about the freeside-commits mailing list