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
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.

AttachmentSize
store_was_protected_flag.patch667 bytes

#1

pebosi - August 15, 2008 - 10:35

Worked well for me.

#2

tolmi - October 5, 2008 - 19:33
Status:needs review» fixed

Committed to HEAD

#3

Anonymous (not verified) - October 19, 2008 - 19:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.