Item9616: add new 1.1 Group topic forward compatibility to 1.0.10

pencil
Priority: Urgent
Current State: Closed
Released In: 1.0.10
Target Release: patch
Applies To: Engine
Component: Groups
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: KennethLavrsen
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.

  1. search for topic=*Group
  2. use getPref(GROUP)
  3. add GroupView topic to topicusermapping

forward compatibility commited.

-- SvenDowideit - 04 Sep 2010
 

ItemTemplate edit

Summary add new 1.1 Group topic forward compatibility to 1.0.10
ReportedBy GeorgeClark
Codebase 1.0.9, trunk
SVN Range
AppliesTo Engine
Component Groups
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:2d014259f825 distro:c234cfa26833
TargetRelease patch
ReleasedIn 1.0.10
Topic revision: r9 - 08 Sep 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy