Key member groups appearing twice
Posted: 07 July 2008 09:45 AM   [ Ignore ]
Member
RankRankRank
Total Posts:  76
Joined  2007-07-19

I’ve copied the example from the User Key docs page, but my members groups are appearing twice.

Any ideas why?

{exp:user:key template="template_group/template"}

<p>
Member Group
<select name="group_id">
{member_groups}
<option value="{group_id}">{group_title}</option>
{/member_groups}
</select>
</
p>

....

{/exp:user:key}

That outputs

<p>
Member Group
<select name="group_id">
<
option value="2">Banned</option>
<
option value="3">Guests</option>
<
option value="4">Pending</option>
<
option value="5">Members</option>
<
option value="6">Volunteers</option>
<
option value="7">Admins</option>
<
option value="2">Banned</option>
<
option value="3">Guests</option>
<
option value="4">Pending</option>
<
option value="5">Members</option>
<
option value="6">Volunteers</option>
<
option value="7">Admins</option>
</
select>
</
p>

Profile
 
 
Posted: 08 July 2008 09:26 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Joobs,

I can duplicate this issue…
I will add this to be fixed for the next release smile

In the meantime, I suppose hardcoding it would do....

By the way, do you have MSM installed?

 Signature 
Profile
 
 
Posted: 08 July 2008 12:47 PM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  76
Joined  2007-07-19

Yes i do have the MSM installed.

Handcoding will be fine for now.

Profile
 
 
Posted: 08 July 2008 01:08 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

I think MSM is the issue…

 Signature 
Profile