Core account settings form is broken. Account configuration is not saved anymore.

Created on 14 September 2017, over 7 years ago
Updated 10 May 2024, 8 months ago

The unique_field_form_alter for saving the unique_field user settings breaks the saving of any other account settings. After installing unique_field module it is no longer possible to save account configuration. It fails silently and you might just wonder why the old/previous config does reappear after you press "Save Configuration"

See: admin/config/people/accounts

This is due to the fact that registering a submit handler on a specific element overrides the default handler

Quote from Berdir: https://www.drupal.org/node/2252165#comment-9437863 β†’

That is by design. If #submit handlers are set on a specific submit element, then they override the default.
Use the top-level $form['#submit'][] to add additional and still have the default implementation called.

and Tim.Plunket: https://www.drupal.org/node/2252165#comment-8730329 β†’

Using the button level #submit explicitly skips the generic form submission handler, and that is true in D7 as well.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany marcusx

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