Closed (fixed)
Project:
Drupal core
Version:
4.6.9
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2006 at 17:41 UTC
Updated:
5 Jan 2007 at 20:16 UTC
When a user edits an article where an admin with 'administer comments' changed the 'User comments' settings these settings are not kept and are reset to the defaults for the node type....
bad code here.... The code is correct for new nodes, not for edited nodes
case 'validate':
if (!user_access('administer comments')) {
// Force default for normal users:
$node->comment = variable_get("comment_$node->type", 2);
}
I have no clue yet of how to fix this...
Comments
Comment #1
bwynants commentedThis will fix it I think. However is that the way it's usually done?
Comment #2
magico commentedComment #3
magico commentedNobody cared. It isn't critical. The majority already uses 4.7+