Ignore:
Timestamp:
08/12/10 12:00:28 (14 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Merge trunk bugfixes and updates

Location:
branches/htmlform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform

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

    r451 r468  
    139139  my $sql = "(select $cols from searchme where".
    140140        " $webvar{custexclude} (custid ilike '%$webvar{custid}%'".
    141         " OR $webvar{custexclude} oldcustid ilike '%$webvar{custid}%'))".
    142141        " $sqlconcat (select $cols from searchme where $webvar{descexclude} description ilike '%$webvar{desc}%')".
    143142        " $sqlconcat (select $cols from searchme where $webvar{notesexclude} notes ilike '%$webvar{notes}%')";
     
    353352    # Query for a customer ID.  Note that we can't restrict to "numeric-only"
    354353    # as we have non-numeric custIDs in the legacy data.  :/
    355     $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' or description like '%$query%'";
     354    $sql = "select $cols from searchme where custid ilike '%$query%' or description like '%$query%'";
    356355    my $count = countRows($sql);
    357356    $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note: See TracChangeset for help on using the changeset viewer.