Problem/Motivation
Currently, if I create a Fragment type and then hide the Author field in the form display for that Fragment, on the add/edit form, it still shows an Author vertical tab.
Steps to reproduce
- Enable Fragments module
- Create fragment type
- Manage form display for new fragment type
- Move authoring field to 'hidden'
- Visit fragment type add form and click on the 'Authoring information' tab
- Note the empty tab
Proposed resolution
In Drupal\fragments\Form\FragmentForm::buildForm() add check before adding $form['authoring_information'] container as to whether $form['user_id'] is being rendered.
Remaining tasks
- Create patch
- Review, test, commit
User interface changes
In the case where the Author field is hidden, then the UI will change to no longer show the "Authoring information" vertical tab.
Issue fork fragments-3191038
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
eelkeblokComment #3
eelkeblokComment #4
eelkeblokComment #6
eelkeblokComment #7
eelkeblokI guess there won't be a review.. :)
Comment #9
eelkeblok