Changeset 592 for branches/stable/cgi-bin/search.cgi
- Timestamp:
- 05/14/13 17:45:17 (12 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
- Property svn:mergeinfo changed
/trunk merged: 452-455,462,485-486,515
- Property svn:mergeinfo changed
-
branches/stable/cgi-bin/search.cgi
r507 r592 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}%')"; … … 336 335 # Query for a customer ID. Note that we can't restrict to "numeric-only" 337 336 # as we have non-numeric custIDs in the legacy data. :/ 338 $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' ordescription like '%$query%'";337 $sql = "select $cols from searchme where custid ilike '%$query%' or description like '%$query%'"; 339 338 my $count = countRows($sql); 340 339 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note:
See TracChangeset
for help on using the changeset viewer.