Closed (fixed)
Project:
Protected Node
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2012 at 09:09 UTC
Updated:
25 May 2012 at 09:50 UTC
The sub module protected_node_rules still has to be ported to drupal 7.
Comments
Comment #1
zilverdistel commentedI ran it through the coder_upgrade module and committed the result in 7.x-1.x branch. Still needs to be tested.
Comment #2
zilverdistel commentedChanged the hook_rules_action_info() and hook_rules_condition_info() hooks to reflect the api changes for rules-7.x. Leaving this issue in status "needs review" until further testing has been done.
Commit: http://drupalcode.org/project/protected_node.git/commit/680d28b.
Comment #3
pjabode commentedI've been testing for simple password protecting on nodes. So far the only issue is when I unpublish a page I get the following error:
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'protected_node_is_protected' at row 1: INSERT INTO {protected_nodes} (protected_node_is_protected, protected_node_passwd, protected_node_show_title, nid, protected_node_hint) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => 0 [:db_insert_placeholder_3] => 22 [:db_insert_placeholder_4] => ) in _protected_node_save() (line 718 of C:\wamp\www\drupal-7.12.mySite\sites\all\modules\protected_node\protected_node.module).I was able to delete the page with no error message.
Comment #4
zilverdistel commentedHi pjabode,
I'm closing this issue. If you're still getting the error, please file a new issue for this.
Thank you,
Diederik