Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293211

After enabling Require Summary on a field I can’t create a new entity or disable Require Summary.

$
0
0

Problem/Motivation

After enabling Require summary on a Basic Block, new blocks cannot be created and Require summary cannot be disabled.

Steps to reproduce

  • Navigate to /admin/structure/block/block-content/manage/basic/fields/block_content.basic.body
  • Enable Require summary (but not Summary input)
  • Save (Message: Saved Body configuration)
  • Navigate to /admin/structure/block/block-content
  • Add custom block
  • Note: only Block description and Body field are visible, no summary
  • Add description
  • Add body
  • Error: Summary field is required.
  • Back to /admin/structure/block/block-content/manage/basic/fields/block_content.basic.body
  • Note: summary is not visible
  • Disable Require summary
  • Error: Summary field is required.

I also tested on an existing site (8.8.2) on the body field on a content type and body field on a Product (commerce module), with the same results. Also, on a new content type:

  • Deleted the default body field and added a new text w/ summary field
  • Save
  • Edited, enabled Require summary
  • Save
  • Same results--unable to add entity or edit the text field under Manage Fields.

If I enable Summary input at the same time as Require summary, then the summary is displayed when adding the entity and when I edit the field, but I still can't disable it. If I fill out the default value summary, then I can disable and save.

Screenshots

Before:

After:

Proposed resolution

Update the form validation to require that Summary input must be enabled before Require summary can be enabled.

Remaining tasks

  1. Create patch
  2. Review patch
  3. Test patch
  4. Commit

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>