Active
Project:
Field Validation
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2012 at 06:06 UTC
Updated:
2 Oct 2016 at 11:29 UTC
Jump to comment: Most recent
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
Comment #1
g089h515r806 commentedAre you sure?
Have you seen the error message that generated by this module?
Comment #2
g089h515r806 commentedDo you mean that you edit a node, and click the delete button?
Or click the delete link at admin/content?
Comment #3
lennyk commentedDelete button when editing a node.
My validation is custom PHP code.
Comment #4
g089h515r806 commentedThis 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.
Comment #5
g089h515r806 commentedComment #6
agerson commentedSo 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.
Comment #7
nicktr commentedAgree 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.