Ignore:
Timestamp:
10/09/13 15:36:14 (11 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Brown-paper-bag fixup commit:

  • add another type to the set which can use nodes
  • template and code changes to let admin allocations includ VRF info
  • fix subtle bug in getTypeList() that returned the Routing type when it shouldn't
  • compare and display VRF info on searches
  • minor HTML formatting tweaks for clarity

Bump version to 2.8.1

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable

    • Property svn:mergeinfo changed
      /trunkmerged: 603
  • branches/stable/cgi-bin/search.cgi

    r601 r605  
    148148  # Columns actually returned.  Slightly better than hardcoding it
    149149  # in each (sub)select
    150   my $cols = "cidr,custid,type,city,description";
     150  my $cols = "cidr,custid,type,city,description,vrf";
    151151
    152152  # hack fix for undefined variables
     
    350350#    which probably shouldn't be for reasons of sanity.
    351351
    352   my $cols = "cidr,custid,type,city,description";
     352  my $cols = "cidr,custid,type,city,description,vrf";
    353353
    354354  if ($category eq 'all') {
     
    368368    # Query for a customer ID.  Note that we can't restrict to "numeric-only"
    369369    # as we have non-numeric custIDs in the legacy data.  :/
    370     $sql = "select $cols from searchme where custid ilike '%$query%' or description ilike '%$query%'";
     370    $sql = "select $cols from searchme where custid ilike '%$query%'".
     371        " or description ilike '%$query%' or vrf ilike '%$query%'";
    371372    my $count = countRows($sql);
    372373    $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
     
    465466  my $count = 0;
    466467  my @sresults;
    467   while (my ($block, $custid, $type, $city, $desc) = $sth->fetchrow_array) {
     468  while (my ($block, $custid, $type, $city, $desc, $vrf) = $sth->fetchrow_array) {
    468469    my %row = (
    469470        rowclass => $count++ % 2,
     
    474475        disptype => $disp_alloctypes{$type},
    475476        city => $city,
    476         desc => $desc
     477        desc => $desc,
     478        vrf => $vrf,
    477479        );
    478480    push @sresults, \%row;
Note: See TracChangeset for help on using the changeset viewer.