Skip to content

Commit

Permalink
Registration: Fix preselection of radio button in role access configu…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay authored and pascalseeland committed Mar 3, 2024
1 parent 6e6524f commit 3acecbb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,12 @@ public function initRoleAccessForm(): ilPropertyFormGUI
$role_access->addOption($op_unlimited);
$role_access->addOption($op_absolute);
$role_access->addOption($op_relative);
$role_access->setValue($this->access_limitations_obj->getMode($role['id']));
$role_access->setValue(
$this->access_limitations_obj->getMode(
$role['id']
) === 'null' ? 'unlimited' : $this->access_limitations_obj->getMode($role['id'])
);

$role_access->setValue('unlimited');
$form->addItem($role_access);
}

Expand Down

0 comments on commit 3acecbb

Please sign in to comment.