Ignore:
Timestamp:
07/30/10 15:40:36 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Remove reference to legacy oldcustid field - leftovers from a
billing system transition. See #26.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/search.cgi

    r439 r455  
    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}%')";
     
    335334    # Query for a customer ID.  Note that we can't restrict to "numeric-only"
    336335    # as we have non-numeric custIDs in the legacy data.  :/
    337     $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' or description like '%$query%'";
     336    $sql = "select $cols from searchme where custid ilike '%$query%' or description like '%$query%'";
    338337    my $count = countRows($sql);
    339338    $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note: See TracChangeset for help on using the changeset viewer.