Changeset 468 for branches/htmlform/cgi-bin/search.cgi
- Timestamp:
- 08/12/10 12:00:28 (14 years ago)
- Location:
- branches/htmlform
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/htmlform
-
branches/htmlform/cgi-bin/search.cgi
r451 r468 139 139 my $sql = "(select $cols from searchme where". 140 140 " $webvar{custexclude} (custid ilike '%$webvar{custid}%'". 141 " OR $webvar{custexclude} oldcustid ilike '%$webvar{custid}%'))".142 141 " $sqlconcat (select $cols from searchme where $webvar{descexclude} description ilike '%$webvar{desc}%')". 143 142 " $sqlconcat (select $cols from searchme where $webvar{notesexclude} notes ilike '%$webvar{notes}%')"; … … 353 352 # Query for a customer ID. Note that we can't restrict to "numeric-only" 354 353 # as we have non-numeric custIDs in the legacy data. :/ 355 $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' ordescription like '%$query%'";354 $sql = "select $cols from searchme where custid ilike '%$query%' or description like '%$query%'"; 356 355 my $count = countRows($sql); 357 356 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note:
See TracChangeset
for help on using the changeset viewer.