Skip to content
Snippets Groups Projects

#3522188: Conditionally hide the roles selector; unset roles if hidden selector value leaks.

Merged #3522188: Conditionally hide the roles selector; unset roles if hidden selector value leaks.
1 unresolved thread
Merged Marcin Grabias requested to merge issue/lms-3522188:3522188-course-roles-visible into 1.0.x
1 unresolved thread

Closes #3522188

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
89 84 '#description' => $self_join ? $this->t('You will be added to the selected class.') : $this->t('Student will be added to the selected class.'),
90 85 '#options' => $options,
91 86 ];
87
88 if (\array_key_exists('group_roles', $form)) {
89 $form['group_roles']['#states'] = [
90 'visible' => [
91 'select[name=class]' => ['value' => '0'],
  • Please register or sign in to reply
    Loading