Editing Action generates two errors

Created on 21 June 2017, almost 8 years ago
Updated 29 April 2024, about 1 year ago

Hi,

When I'm going to "admin/config/system/actions/configure/***" for existing action generated by Domain Access I have two errors :

Notice: Undefined index: id in Drupal\domain_access\Plugin\Action\DomainAccessActionBase->buildConfigurationForm() (line 65 of modules/contrib/domain/domain_access/src/Plugin/Action/DomainAccessActionBase.php).

Warning: Invalid argument supplied for foreach() in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 100 of core/lib/Drupal/Core/Render/Element/Checkboxes.php).

After analyzing the code, I noticed that on the buildConfigurationForm() function in the file "Drupal\domain_access\Plugin\Action\DomainAccessActionBase" there is two strange things.

First one : My object $this->configuration return a key "domain_id" and not "id" as mentionner on line 65
Second one : the #default_value expects an array and we have a string.

Are you reproducing the same behaviour ?

Thanks

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France guilhom Toulouse

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024