DB entries are not deleted when protection is switched off
Frank Steiner - August 1, 2008 - 13:55
| Project: | Protected node |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
during my work on the inheritance patch (yes, still to come ;-), it's finished, and currently in extensive testing) I realized that db entries in the protected_nodes table are not deleted when the protected-checkbox is turned off. That's because the was_protected flag is set in nodeapi 'load' (and will be available during delete, view etc.) but is not transferred to form_validate because the form for storing the value is missing.
The patch adds a hidden field for storing the was_protected flag.
| Attachment | Size |
|---|---|
| store_was_protected_flag.patch | 667 bytes |

#1
Worked well for me.
#2
Committed to HEAD
#3
Automatically closed -- issue fixed for two weeks with no activity.