Changeset 455 for trunk/cgi-bin/search.cgi
- Timestamp:
- 07/30/10 15:40:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/search.cgi
r439 r455 128 128 my $sql = "(select $cols from searchme where". 129 129 " $webvar{custexclude} (custid ilike '%$webvar{custid}%'". 130 " OR $webvar{custexclude} oldcustid ilike '%$webvar{custid}%'))".131 130 " $sqlconcat (select $cols from searchme where $webvar{descexclude} description ilike '%$webvar{desc}%')". 132 131 " $sqlconcat (select $cols from searchme where $webvar{notesexclude} notes ilike '%$webvar{notes}%')"; … … 335 334 # Query for a customer ID. Note that we can't restrict to "numeric-only" 336 335 # as we have non-numeric custIDs in the legacy data. :/ 337 $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' ordescription like '%$query%'";336 $sql = "select $cols from searchme where custid ilike '%$query%' or description like '%$query%'"; 338 337 my $count = countRows($sql); 339 338 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note:
See TracChangeset
for help on using the changeset viewer.