In my tests, the deletion of a node will be blocked if a field is set to a value that will fail validation.

IMHO, validation of fields should be bypassed when deleting a node.

Comments

g089h515r806’s picture

Are you sure?
Have you seen the error message that generated by this module?

g089h515r806’s picture

Do you mean that you edit a node, and click the delete button?
Or click the delete link at admin/content?

lennyk’s picture

Delete button when editing a node.

My validation is custom PHP code.

g089h515r806’s picture

This is not a bug, when you click the delete button ,
Drupal also trigger the validation process, if your data fail the validation process, you will get the error message.

It is correct.

g089h515r806’s picture

Status: Active » Closed (works as designed)
agerson’s picture

Version: 7.x-2.0-beta2 » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (works as designed) » Active

So if for some reason a node violates a validation rule it can never be deleted? Why would you need to validate a node that you intended to delete? Weather its valid or not you want to delete.

nicktr’s picture

Agree with Agerson. I have added a validation rule which applies to new nodes, but removing any nodes that were created before the validation rule is now impossible (for non-admins at least). It may work as designed but this is a fairly big UX hole.