Changeset 185 for trunk/dns.cgi


Ignore:
Timestamp:
12/06/11 13:00:11 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix isParent() to return correct results for checks where the
checked parent is not the immediate parent of the checked child.
This triggered a UI glitch where the group tree was not properly
expanded to the current group if a sub-sub-sub group of the
login group was set as the current group.

Clean up stale comments in fill_grptree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r183 r185  
    16041604    $row{grpnum} = $_;
    16051605    $row{whereami} = $uri_self;
    1606         # for all that HTML::Template is supposed to keep the HTML out of the Perl, this is so much more compact...
    1607 #    $row{grpdisp} = ($_ == $cur ? "<b>$row{grpname}</b>" : $row{grpname});
    1608 $row{curgrp} = ($_ == $cur);
    1609 $row{expanded} = isParent($dbh, $_, 'group', $cur, 'group');
    1610 $row{expanded} = 1 if $_ == $cur;
     1606    $row{curgrp} = ($_ == $cur);
     1607    $row{expanded} = isParent($dbh, $_, 'group', $cur, 'group');
     1608    $row{expanded} = 1 if $_ == $cur;
    16111609    $row{subs} = fill_grptree($_,$cur,$indent.'    ');
    16121610    $row{indent} = $indent;
Note: See TracChangeset for help on using the changeset viewer.