Ignore:
Timestamp:
05/14/13 17:45:17 (11 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Merge /trunk changes up to r516

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable

  • branches/stable/cgi-bin/search.cgi

    r507 r592  
    128128  my $sql = "(select $cols from searchme where".
    129129        " $webvar{custexclude} (custid ilike '%$webvar{custid}%'".
    130         " OR $webvar{custexclude} oldcustid ilike '%$webvar{custid}%'))".
    131130        " $sqlconcat (select $cols from searchme where $webvar{descexclude} description ilike '%$webvar{desc}%')".
    132131        " $sqlconcat (select $cols from searchme where $webvar{notesexclude} notes ilike '%$webvar{notes}%')";
     
    336335    # Query for a customer ID.  Note that we can't restrict to "numeric-only"
    337336    # as we have non-numeric custIDs in the legacy data.  :/
    338     $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' or description like '%$query%'";
     337    $sql = "select $cols from searchme where custid ilike '%$query%' or description like '%$query%'";
    339338    my $count = countRows($sql);
    340339    $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note: See TracChangeset for help on using the changeset viewer.