Node creation without usage of protected node creates an entry in table protected_nodes where protected_node_is_protected = 0 and protected_node_password is empty.
Editing this node and changing to protected results in an SQL insert statement
INSERT INTO protected_nodes (protected_node_is_protected, protected_node_passwd, protected_node_show_title, nid) VALUES (1,
', , ) in protected_node.module on line 599
instead of an update statement
Comments
Comment #1
AlexisWilke commentedI see... The select gets the password and if empty it looks like it doesn't exist.
I have applied a fix. Let me know whether that works for you. I'm creating a beta1 version as it sounds like there aren't too many other problems with this new version of protected node.
Thank you.
Alexis Wilke
See:
http://drupalcode.org/project/protected_node.git/commit/91944c7