Page Access Settings Empty Checkbox

Created on 25 May 2023, over 1 year ago
Updated 6 March 2024, 10 months ago

Problem/Motivation

Upon initial setup of new registration page, the page access modal & page both fail with empty default checkbox value.

Steps to reproduce

1. Create new custom registration page for any given user role.
2. After creation, you'll be presented with the Multiple Registration pages access settings link in both the messages & below the list of created pages.
3. When clicking on this link, ajax will fail or the page will fail with Warning: foreach() argument must be of type array|object, null given, this is because the multiple_registration_pages_allowed_list is empty by default.

Proposed resolution

Setting default value within AccessSettingsPageForm.php to something general such as administrator.

'#default_value' => $config->get('multiple_registration_pages_allowed_list') ?: ['administrator' => 'administrator'],
πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rpimentel94

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024