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.
|PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 68,149 pass(es).|
|FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Unable to apply patch drupal_216064_146.patch. Unable to apply patch. See the log in the details link for more information.|
|PASSED: [[SimpleTest]]: [MySQL] 47,988 pass(es).|
|FAILED: [[SimpleTest]]: [MySQL] 47,548 pass(es), 21 fail(s), and 2 exception(s).|