Changeset 320 for trunk/cgi-bin/search.cgi
- Timestamp:
- 04/04/06 18:25:28 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/search.cgi
r289 r320 9 9 # Last update by $Author$ 10 10 ### 11 # Copyright 2005 Kris Deugau <kdeugau@deepnet.cx>11 # Copyright 2005,2006 Kris Deugau 12 12 13 13 use strict; … … 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}%')"; … … 283 284 # Query for a customer ID. Note that we can't restrict to "numeric-only" 284 285 # as we have non-numeric custIDs in the legacy data. :/ 285 $sql = "select * from searchme where custid ilike '%$query%' ";286 $sql = "select * from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%'"; 286 287 my $count = countRows($sql); 287 288 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note:
See TracChangeset
for help on using the changeset viewer.