Ignore:
Timestamp:
07/04/14 13:18:11 (10 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Brown-paper-bag fix for patch in r620; forgot to include the SQL update,
forgot to include the new field in the column selection, and got the logic
sense for whether to show the "edit block" or "allocate free IP" link
inverted. *sigh*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/search.cgi

    r620 r621  
    148148  # Columns actually returned.  Slightly better than hardcoding it
    149149  # in each (sub)select
    150   my $cols = "cidr,custid,type,city,description,vrf";
     150  my $cols = "cidr,custid,type,city,description,vrf,available";
    151151
    152152  # hack fix for undefined variables
     
    351351#    which probably shouldn't be for reasons of sanity.
    352352
    353   my $cols = "cidr,custid,type,city,description,vrf";
     353  my $cols = "cidr,custid,type,city,description,vrf,available";
    354354
    355355  if ($category eq 'all') {
     
    478478        desc => $desc,
    479479        vrf => $vrf,
    480         avail => $avail eq 'y',
     480        avail => ($avail eq 'y' ? 1 : 0),
    481481        );
    482482    push @sresults, \%row;
Note: See TracChangeset for help on using the changeset viewer.