Do not render fieldsets when no there is no data, or the user lacks crud permissions

Created on 19 August 2016, over 8 years ago
Updated 7 May 2024, 7 months ago

Problem

Entity form displays as empty fieldselect like in the following picture:

How to reproduce?

When you work with contrib module (Scheduled updates) https://www.drupal.org/project/scheduled_updates β†’ (and configure it) you have a set of permissions create, edit, update and basically in code "inline entity form" has an if conditions "ALLOW_CREATE" to determine if new elements has to be created BUT there's no if condition to determine when there's no DATA.
What happens when there's no DATA and you do not have permissions to create new content ? basically the fieldset wrapped is empty and looks like the following image:

How it looks now

How it should look ?

Basically No field display(no fieldset displayed)

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡ͺPeru edutrul

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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