Status messages from AjaxRenderer not prepended correctly when adding field items per ajax

Created on 25 February 2016, almost 9 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

Status messages from AjaxRenderer are not prepended correctly when adding field items per ajax. They get sent to the client with selector = NULL and then they are not prepended.

Steps to reproduce:
1. Make the body field of article required and multiple.
2. Empty all the body fields on a node.
3. Add another item.
4. Now a status message should be shown indicating that the field is required, but it is not inserted in the DOM.

Proposed resolution

Maybe introduce a #wrapper element, for which the AjaxRenderer should if it exists and if so use it as a selector for the status messages?

Remaining tasks

Find a solution.

User interface changes

Now the user is going to see the errors generated when adding field items per ajax.

API changes

Depends on the solution.

Data model changes

none.

πŸ› Bug report
Status

Needs work

Version

9.5

Component
AjaxΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany hchonov πŸ‡ͺπŸ‡ΊπŸ‡©πŸ‡ͺπŸ‡§πŸ‡¬

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.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.71.5 2024