Changeset 185


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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r175 r185  
    15201520##fixme: do we care about trying to return a "no such record/domain/user/group" error?
    15211521      warn $dbh->errstr." $sql, $id" if $dbh->errstr;
    1522       last;
    15231522    }
    15241523    # group 1 is its own parent.  need this here more to break strange loops than for detecting a parent
  • 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.