Closed (fixed)
Project:
Simple Access
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2011 at 13:38 UTC
Updated:
6 Mar 2013 at 05:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
cybelle commentedsolution :
db_delete($table)
->condition('pid', $pid)
->execute();
Should be nid
db_delete($table)
->condition('nid', $node->nid)
->execute();
Comment #2
jerodfritz commentedthis solved the problem for me. there is no pid in the schema in any of those tables.
Comment #3
kscott22 commentedWorked for me, as well. Been struggling with this one for a while. Yay! Thanks, cybelle!
Comment #4
c31ck commentedFix works, thanks cybelle. I've created a patch for this fix.
Comment #5
tompagabor commentedWorks fine for me.
Comment #6
anj commentedPatch in #4 works fine for me too.
Comment #7
Xomby commentedConfirmed, Works for me too. thanks very much for quick fix!
Comment #8
emilkarl commentedWorks for me as well. Thanks!
Comment #9
roderikFYI: this is fixed in 7.x-2.x-dev (from march 12th, 2011. It's the only change since 2.0-beta1.)
Comment #10
flocki commentedThanks! I hope this will make it into beta2
Comment #11
drupal_simply_amazing commentedWhat files in particular can i insert this patch.
diff -Naur original/simple_access.module modified/simple_access.module
--- original/simple_access.module 2011-06-24 10:14:00.000000000 +0200
+++ modified/simple_access.module 2011-06-24 10:15:01.000000000 +0200
@@ -260,7 +260,7 @@
function simple_access_node_delete($node) {
foreach (array('simple_access_node', 'simple_access_owner', 'simple_access_profiles_node') as $table) {
db_delete($table)
- ->condition('pid', $pid)
+ ->condition('nid', $node->nid)
->execute();
}
}
Tnx.
Edit:
Thank you guys. It works on me also.
Comment #12
gordon commentedFix is dev