On every Entity Bundle deletion form, I notice a Revision Manager fieldset. Is that really necessary?
Could you please explain the background on why it was added there?
I understand that having it during Bundle creation makes sense, since the revision retention policy can be managed at that stage.
However, do we also need the same fieldset on Bundle deletion?
Kindly clarify.
Issue fork revision_manager-3568690
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
j-barnes commented@raajkumar.kuru - Hey, thanks for reporting this - you're absolutely right.
There's no reason to show revision manager settings on a deletion form. The bundle's about to be deleted anyway, so those settings are completely irrelevant at that point and just adds noise.
Should be a straightforward fix - we just need to check the form operation and bail early for things like delete, cancel, reset. Similar to how rabbit_hole handles it.
Comment #4
j-barnes commentedComment #5
raajkumar.kuruThanks, Can you merge
Comment #7
j-barnes commentedComment #9
sunny-lee commentedLooks all good here, tested with removing a pre-existing content type (no more revision manager dropdown and settings showing) and successfully deleted. Created a new one and tried removal again and message is not showing.
Comment #10
j-barnes commentedComment #12
raajkumar.kuruOn Menu listing page its appearing.
Better we can remove all entity places
Comment #13
raajkumar.kuruComment #14
j-barnes commented@raajkumar.kuru - thanks for following up.
Just want to make sure I understand what you're seeing. The fieldset showing on menu edit forms (like /admin/structure/menu/manage/main) is expected since menus act as bundles for menu_link_content, letting you set per-menu revision policies. But if it's appearing somewhere else or in a way that seems off, I'd like to take a look.
If you don't need revision management for menu links, disabling menu_link_content on the settings page should hide the fieldset entirely.
What were you expecting to see there instead?
Comment #15
raajkumar.kuruCan we move the Revision Manger on top on menu entity. Currently its at the bottom after menu items
Comment #16
j-barnes commentedThanks for the follow-up. The main issue here has been resolved and verified, so I'm going to close this one out.
The fieldset lands at the bottom of the form which is standard Drupal behavior for settings added via form alter. Other contrib modules like Simple XML Sitemap, Metatag, Pathauto, etc. all end up in the same spot. If you'd like to see it handled differently, feel free to open a separate feature request.