[Rt-commit] r10313 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Sun Jan 13 17:52:11 EST 2008
Author: ruz
Date: Sun Jan 13 17:52:11 2008
New Revision: 10313
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Group/ColumnMap
Log:
r10137 at cubic-pc: cubic | 2008-01-06 04:35:16 +0300
* __HasMember[Recursively].{$principal_id}__ to group's column map
Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Group/ColumnMap
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Group/ColumnMap (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/RT__Group/ColumnMap Sun Jan 13 17:52:11 2008
@@ -57,6 +57,22 @@
align => 'right',
value => sub { return $_[0]->id },
},
+ HasMember => {
+ title => 'Member',
+ value => sub {
+ my $group = $_[0];
+ my $uid = $_[2] || return '';
+ return $group->HasMember( $uid )? $_[0]->loc('yes'): $_[0]->loc('no');
+ },
+ },
+ HasMemberRecursively => {
+ title => 'Recursive member',
+ value => sub {
+ my $group = $_[0];
+ my $uid = $_[2] || return '';
+ return $group->HasMemberRecursively( $uid )? $_[0]->loc('yes'): $_[0]->loc('no');
+ },
+ },
};
foreach my $col( qw(Name Description) ) {
More information about the Rt-commit
mailing list