Closed (duplicate)
Project:
Advanced Forum
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2009 at 11:42 UTC
Updated:
16 Jun 2009 at 04:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
Henrik Opel commentedThe attached patch fixes the issue by adding the missing special case checks for 'comment/edit' pages and ensuring a proper $node variable initialization in advanced_forum_preprocess_comment() for those pages also.
Comment #2
michelleThanks, I'll try to take a look at this soon. I don't remember any specific reason for excluding editing so it's likely it just didn't occur to me to add it for that. Not so much a bug as simply not covering all possible cases. :) But I don't see any reason this can't be added to 1.x.
Michelle
Comment #3
Henrik Opel commentedHi, thanks for the quick reaction - somehow I'm not used to that around here ;)
As for the question of bug vs. 'not covering all possible cases':
A preview that does not show the result as it will be shown afterward is at least useless, if not actively misleading. Therefore it should be considered broken, imho. (No reason to start one of those moot 'bug vs. task' discussions, of course - I can surely live with the classification as a task ;)
More important note: Thank you for this useful module :)
Comment #4
michelleWell, it's not a bug in that AF was designed to style the "view" mode, not the "create" mode. I believe styling during a reply was the result of a user request and just sort of tacked in there. So I don't really consider it broken for not doing something it was never intended to do in the first place.
At any rate, I am working on overhauling the whole process of what gets styled as a forum post and that will cover this case as well. I don't know if I will backport it to 1.x. It depends on how long 2.x takes to come out. In the mean time, folks have your patch if they need it.
Thanks,
Michelle
Comment #5
michelleMerging with #492794: Improve function for determining what gets the style applied
Michelle