Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Related Issue #413494: Support for comment edited message in the template
For a while, $comment->comment_edited was working perfectly in my Adv Forum template. But when I went to 6x1.4, it stopped working.
(I do have "use a template variable" enabled)
Comments
Comment #1
snufkin CreditAttribution: snufkin commentedI'm sorry, I was too focused on getting the SA out that this bug slipped in, i'll try to fix it ASAP. It is safe to roll back to the version before the SA for the time being if you are the only person who has the administer comments permission in the system.
Comment #2
aharown07 CreditAttribution: aharown07 commentedThx. I was going to ask about roll back.
(Edit: Rollback successful... and we hv nobody w/admin besides user1 so the SA issue is not hot for us)
Comment #3
aharown07 CreditAttribution: aharown07 commentedAny progress on this yet?
Comment #4
snufkin CreditAttribution: snufkin commentedno
Comment #5
snufkin CreditAttribution: snufkin commentedthe reason why this broke is because I used a preprocess_comment - I wonder if i should just roll back to what it used to be, using preprocess_comment felt like the right way to go about this, since its a theming related change, but I am not familiar enough with the code of AF. I posted in the issue queue of that module to try to figure it out.
Comment #6
aharown07 CreditAttribution: aharown07 commentedThere's an alpha 4 now, but I haven't tested yet.
Comment #7
mcdruidAs per #413494: Support for comment edited message in the template I believe the integration between comment_edited (6.x-1.4) and advanced_forum (6.x-2.x-dev) is now fixed.
Marking as needs review so that snufkin can close this issue.
Comment #8
snufkin CreditAttribution: snufkin commentedyeah, that looks like is the correct fix for it. It would probably have been a better solution to keep using the $variables['comment_edited'] variable, but for now I am happy if it just works. Thanks for your work on this and supporting this module.
Comment #10
aharown07 CreditAttribution: aharown07 commentedDid some testing today.
6x-1.3 works fine with the latest dev release of Adv Forum 2.
But 6x-1.4 does not, as far as I can tell. Maybe there is some new setting I missed somewhere?
Related: #413494: Support for comment edited message in the template
Comment #11
mcdruidI can confirm that this no longer looks like an AF problem (although we did have to make a change in the theme code).
It looks like the problem in comment_edited 6.x-1.4 has already been fixed in dev.
Details here: http://drupal.org/node/413494#comment-5918536