Mattermost settings and handler couldn't set up successfully

Created on 31 January 2022, almost 3 years ago
Updated 31 January 2024, 11 months ago

Problem/Motivation

1. It seems that the handler is broken. It could not be opened and set up via Emails/Handlers page of any webform.
2. We get the following error after we save at the webform configuration path /admin/structure/webform/config/handlers/mattermost

Drupal\Core\Config\ImmutableConfigException: Can not save immutable configuration webform.settings. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object on Drupal\Core\Config\ImmutableConfig->save()

Steps to reproduce

Handler issue.
1. Go to any /admin/structure/webform/manage/contact_form/handlers (webform_id: contact_form)
2. Add handler
3. Select Post to Mattermost

Webform mattermost settings issue
1. Go to the webform configuration path /admin/structure/webform/config/handlers/mattermost
2. Click save.

Proposed resolution

I provided the patch to fix the error. Please take a look

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇹🇼Taiwan cobenash Taipei

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

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