Closed (fixed)
Project:
Question/Answer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2012 at 08:42 UTC
Updated:
24 Jan 2013 at 08:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
jcisio commentedThe module itself does not close the comment. Can you test it on a clean install?
Comment #2
ec commentedYes and I will report back here. Regards.
Comment #3
ec commentedHi,
After testing the last version of the 6.x module on a fresh install, it is obvious that the issue I mentionned previously has nothing to do with this module. In fact it appears to be a side effect of the Talk module which I'm using and more precisely the
talk_nodeapi()function of this module.I will open a new issue there and I will report back here.
Best,
Comment #4
ec commentedI think that we should add a statement somewhere in the README or the module's homepage about this issue. Something like this:
Comment #5
jcisio commentedWe should fix the bug. Here is a patch. I didn't test as I don't have Talk module installed. Could you test it (for both 6.x and 7.x) so that I can go ahead and commit?
Comment #6
ec commentedThanks for this patch. In fact it looks like that the talk module closes the comment after saving the node. Hence we need to save it a second time. Here is a patch that works for me on 6.x I don't have a 7.x install.
Comment #7
jcisio commentedThat means patch in #5 did not work? It's weird, because what I read in the Talk's code (latest dev), it does not save node, it just modifies the value on node_load. So patch in #5 restores the value before saving a node. So I don't see the logic in the second patch.
Comment #8
ec commentedSorry, you're right! I may I have done something wrong the first time I tried your patch in #5. I applied it again and it works fine. So here it is again with a test to see if the talk module is activated.
Comment #9
jcisio commentedWe don't need to check if Talk is enabled. Any module can modify $node->comment and store the original value in $node->comment_original_value. So it'd better support all those modules ;)
And could you check it against 7.x versions so that we can keep both branch synched?
Comment #10
jcisio commentedI checked the Talk module and committed to both 6.x and 7.x branches.