Removes a need for a check in advpoll_view which makes the code easier to understand and removes some unneeded content rendered on the result page.

Comments

anders.fajerson’s picture

Priority: Normal » Minor
Status: Active » Needs review
ChrisKennedy’s picture

Status: Needs review » Needs work

Doesn't apply.

anders.fajerson’s picture

Status: Needs work » Needs review
StatusFileSize
new1.16 KB

Re-rolled.

anders.fajerson’s picture

Priority: Minor » Critical

Still applies (with fuzz). Bumping up from minor :)

ChrisKennedy’s picture

I can't see any difference in the output. What "unneeded content" are you referring to?

anders.fajerson’s picture

Ok, "unneeded content" might have been a bit biased. But what I referred to was the submit date, description and optional question field. It can be argued if they indeed should be rendered on the result page, but I think that the simplification in advpoll_view() warrants their removal. I guess we could also render those fields individually, in that case this page should be wrapped in a theme function, maybe anyways, but that's another issue.

ChrisKennedy’s picture

Status: Needs review » Needs work

Ah, well I think those do need to be on the results page - showing the results without the question would be strange. Manually adding submit date & author to a template function also seems like a bad idea, because they are controlled at admin/build/theme/settings.

anders.fajerson’s picture

Priority: Critical » Normal
Status: Needs work » Closed (won't fix)

Yeah, I can agree.