Changeset 318 for branches/stable/cgi-bin/search.cgi
- Timestamp:
- 04/03/06 16:20:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/search.cgi
r309 r318 106 106 # First chunk of SQL. Filter on custid, description, and notes as necessary. 107 107 my $sql = "(select $cols from searchme where $webvar{custexclude} custid ilike '%$webvar{custid}%')". 108 " $sqlconcat $webvar{custexclude} oldcustid ilike '%$webvar{custid}%')". 108 109 " $sqlconcat (select $cols from searchme where $webvar{descexclude} description ilike '%$webvar{desc}%')". 109 110 " $sqlconcat (select $cols from searchme where $webvar{notesexclude} notes ilike '%$webvar{notes}%')"; … … 286 287 # Query for a customer ID. Note that we can't restrict to "numeric-only" 287 288 # as we have non-numeric custIDs in the legacy data. :/ 288 $sql = "select * from searchme where custid ilike '%$query%' ";289 $sql = "select * from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%'"; 289 290 my $count = countRows($sql); 290 291 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note:
See TracChangeset
for help on using the changeset viewer.