Patch clears the cache of the comment which was set to hide/unhide.

This will refresh $content['comment_body']['#object']->hidden_comment in comment.tpl.php, to include current comment hide/unhide status.

CommentFileSizeAuthor
#1 diff.patch422 bytestimofey

Comments

timofey’s picture

StatusFileSize
new422 bytes

The patch

timofey’s picture

Status: Needs review » Reviewed & tested by the community

i tested the patch:)

timofey’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

...and it's ready to be ported!!

jcisio’s picture

Status: Patch (to be ported) » Needs review

Could you submit a D6 patch, too, so that both branches are feature pair. Or maybe we don't need patch for D6?

timofey’s picture

I believe there's no need for D6 patch, hence cache is handled differently.

jcisio’s picture

Status: Needs review » Needs work

This patch is for entitycache module as Drupal core does not have the "cache_entity_comment" bin. I don't think it work without Entity Cache module. Did you test it? I think we need an if condition.