Changeset 937 for trunk


Ignore:
Timestamp:
12/23/22 12:47:58 (2 years ago)
Author:
Kris Deugau
Message:

/trunk

Update getNodeList() for pending reporting widget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r936 r937  
    35723572## IPDB::getNodeList()
    35733573# Gets a list of node ID+name pairs as an arrayref to a list of hashrefs
     3574# Takes an optional argument to flag a selected node for dropdown lists
    35743575sub getNodeList {
    35753576  my $dbh = shift;
     3577  my $sel = shift || 0;
    35763578 
    3577   my $ret = $dbh->selectall_arrayref("SELECT node_id, node_name FROM nodes ORDER BY node_type,node_id",
    3578         { Slice => {} });
     3579  my $ret = $dbh->selectall_arrayref("SELECT node_id, node_name, node_id=? AS selected FROM nodes".
     3580        " ORDER BY node_name,node_type,node_id",
     3581        { Slice => {} }, ($sel) );
    35793582  return $ret;
    35803583} # end getNodeList()
Note: See TracChangeset for help on using the changeset viewer.