Fixed a bug where the group method would always display the group "everyone" as the default group.
This commit is contained in:
parent
1d9a89e40e
commit
2392cc0d58
1 changed files with 2 additions and 2 deletions
|
|
@ -481,7 +481,7 @@ sub formHeader {
|
|||
|
||||
The name field for this form element.
|
||||
|
||||
=item groupId
|
||||
=item value
|
||||
|
||||
The selected group id(s) for this form element. This should be passed
|
||||
as an array reference. Defaults to "7" (Everyone).
|
||||
|
|
@ -506,7 +506,7 @@ sub formHeader {
|
|||
|
||||
sub group {
|
||||
my (%hash, $value);
|
||||
$value = $_[0]->{groupId};
|
||||
$value = $_[0]->{value};
|
||||
if ($$value[0] eq "") { #doing long form otherwise arrayRef didn't work
|
||||
$value = [7];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue