When deleting a node(or other entity) from the edit form clicking the Delete button triggers validation on the entity. This doesn't make sense because a entity that is going to be deleted should not have to validated. It also causes users who don't have access the content overview screen to be unable to delete entities that can't be validate for a number or reasons.
Change the delete button to a delete link(similar to cancel links) on the edit form for Entities that provide a URI(unlink entities link Vocabularies).
This link will not delete directly but go to the conformation form like the current delete button.
Only need 1 more review to be RTBC.
User interface changes
Delete button changes to link
This will happen in the EntityFormController class.
Original report by naquah
(for legacy issues whose initial post was not the issue summary)
Say I am editing a node and have cleared the Title field. But then I decide to remove the node altogether. Boom. Title field is required.
It appears that clicking the Delete button on a node form triggers node validation. This is unexpected behavior and was not happening in 5.x.
I'm thinking the
'#submit' => array('node_form_delete_submit') syntax for the button is misused here, since we don't actually want the form to be submitted, we just want to go to another page.
|FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] 65,123 pass(es), 1 fail(s), and 0 exception(s).|
|PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 65,109 pass(es).|
|PASSED: [[SimpleTest]]: [MySQL] 64,631 pass(es).|