There's probably a more general bug going on here:

Let's say for a particular record, you have usergroup = 1

For the edit form you specify a rule: where group_level > (1)

The form generator outputs a select list of usergroups that match that
rule

Since the current value of usergroup for this record does not match
anything in the select list it outputs as the default choice:

<option value="0">Please Select</option>

Unless you click on the list and select another option, then when you
save the usergroup gets set to '0'.

In this instance, I think the "0" should be interpreted as:

I didn't make a choice either way what the usergroup should be, so don't
change it.

And anyway, why does it set usergroup = 0 when I clearly stated
group_level > (1) ?

That is a separate but related bug I also reported.

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/940869

Title:
  dynamic select menu when editing user group defaults to 0 when
  group_level > (1) and user is admin

Status in Aiki Framework:
  New

Bug description:
  When following the suggestion for how to edit a usergroup using
  dynamic select menu:

  usergroup|admin:User Group:aiki_users_groups:id:name:where group_level
  > (2) and group_level < (100)

  The output looks like this:

  <div class="usergroup field"><label for="usergroup">User
  Group</label><select name="usergroup" dir=""><option value="0">Please
  Select</option><option value="5">Administrators</option><option
  value="6">Editors</option><option
  value="7">Visitors</option></select></div>

  If you don't select a usergroup (because you are editing a user
  quickly), then the usergroup gets set to 0! That shuts the user out of
  the system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/940869/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to