Warning when adding a new acl

Created on 1 September 2023, over 1 year ago
Updated 3 September 2023, over 1 year ago

Problem/Motivation

According to the documentation in code I should be able to do something like this:

$form['access_per_user']['acl'] = acl_edit_form($form_state, 'is_new', t('Assign access for specific users'), TRUE);

But when I do that I get a warning about an undefined variable.

Steps to reproduce

As above.

Proposed resolution

Define the variable in all branches of code.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom steven jones

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

Comments & Activities

Production build 0.71.5 2024