Item9616: add new 1.1 Group topic forward compatibility to 1.0.10
Priority: Urgent
Current State: Closed
Released In: 1.0.10
Target Release: patch
Applies To: Engine
Component: Groups
Branches:
Created a group topic on 1.1 using the API and then copied the topic to 1.0.9. The group iterator didn't appear to find any groups.
Code tested:
if ( Foswiki::Func::isGroup($name) ) {
return if exists $groups->{$name}; # don't reprocess groups
$groups->{$name} = $name;
my $it = Foswiki::Func::eachGroupMember($name);
while ( $it->hasNext() ) {
my $user = $it->next();
processName( $user, $users, $groups );
}
}
Group tested was:
META:TOPICINFO{author="BaseUserMapping_333" comment="reprev" date="1282943579" format="1.1" reprev="1" version="1"}%
Edit this topic to add a description to the !NotifyGroup
--
GeorgeClark - 04 Sep 2010
ok, I'm going to make 1.0.10 search only for
topic="*Group"
rather than that and
"Set GROUP ="
so taht 1.0.10 is compatible with 1.1.0.
looks like I incorrectly ass-u-me-d that I'd added the getPrefs(GROUP) to tmwiki years ago - when this is actually a new 1.1 thing - I'll continue to work to make 1.0.10 compaitble before i release it.
- search for topic=*Group
- use getPref(GROUP)
- add GroupView topic to topicusermapping
forward compatibility commited.
--
SvenDowideit - 04 Sep 2010