Saving node form that fails validation results in no unlock button or message

Created on 19 August 2018, almost 7 years ago
Updated 26 March 2024, over 1 year ago

Problem/Motivation

This may also occur on other forms but I've only been able to test on a node form.

Steps to reproduce:
1) Edit a node with locking enabled that has a required field (one without HTML required support, e.g a text long)
2) Save the node form without filling in the required field
3) Form reloads with required error message but no Unlock button or message.

This seems to be due to this chunk of code in content_lock_form_alter().

    $userInput = $form_state->getUserInput();
    if (!empty($userInput)) {
      return;
    }

Proposed resolution

??

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

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