I upgraded my site from 4.6.3 to CVS and it seems that comments are now disabled by default on forum topics, when they were previously enabled. Not sure if this is a code problem, or a setting in the DB that got twiddled during the upgrade.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | node-save-sets-default-comment-permission-type.patch | 445 bytes | Wesley Tanaka |
Comments
Comment #1
Wesley Tanaka commentedEverything works fine for the uid=1 user. It's just other users that have this problem. The object coming out of node_execute doesn't have a comment field set. Maybe it has to do with the fact that the form doesn't have any UI for whether or not comments are allowed?
Comment #2
Wesley Tanaka commentedHere's a patch that sets a default for $node->comment (based on code I saw in comment.module for setting the radio button initially) if $node->comment isn't already set when the node is passed in for saving.
$node->sticky and $node->promote being unset aren't as big of a deal because non-sticky, non-promoted seem like reasonable defaults. But I think they maybe also should get set to their default values explicitly for robustness sake.
Comment #3
Wesley Tanaka commentedforgot to set patch status
Comment #4
Cvbge commentedI can confirm that after applying this patch forum posts by anonymous have comments enabled (my default setting).
There's still one problem - when you, as admin, edit the forum topic, the Authored field is not set and you have to set it to something. It should be set to anonymous IMO.
Comment #5
Wesley Tanaka commented#4, Unless you think that this patch is causing the problem, my suggestion is that you file that as a separate issue so that the two issues can be tracked separately.
Comment #6
Cvbge commentedIt happens without your patch also.
Comment #7
Wesley Tanaka commentedWould someone be willing to commit this?
Comment #8
Wesley Tanaka commentedoops
Comment #9
Cvbge commentedDuplicate of http://drupal.org/node/40563 (never can find it...)