View poll results gives extra option

Arantor

  • With a Box
  • As long as the planets are turning, as long as the stars are burning, as long as your dreams are coming true...
  • Posts: 13,627
View poll results gives extra option
« on March 31st, 2012, 03:35 AM »
When you have a poll, that you haven't yourself voted in but that you have permission (either because you're the poll starter or because you gave permission) to view the results, you get a 'View Results' button next to the Edit/Remove/Lock Voting buttons.

So far so good, but if you hit that button, you get the results, a Voting Options button to take you back - and you get another 'View Results' option, even though that's where you already are.

As far as I remember this is also a bug in SMF, too.
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


agent47

  • We-Gen
  • Well that's the thing, yesterday was my first experience with the notification feature thus have a total of one notification so far. :D
  • Posts: 79
Re: View poll results gives extra option
« Reply #1 on March 31st, 2012, 11:45 AM »
Quote from Arantor on March 31st, 2012, 03:35 AM
As far as I remember this is also a bug in SMF, too.
And still hasn't been fixed?

Arantor

  • With a Box
  • As long as the planets are turning, as long as the stars are burning, as long as your dreams are coming true...
  • Posts: 13,627
Re: View poll results gives extra option
« Reply #2 on March 31st, 2012, 12:36 PM »
Oh, there are many bugs in 2.0 that have been around for ages. For all I know this one might even be in 1.1.
  When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest.


Nao

  • With a Box
  • If you say so.....
  • Posts: 12,914
Re: View poll results gives extra option
« Reply #3 on April 2nd, 2012, 05:33 PM »
Thanks! That was an easy fix... :lol:
Just needed to move a !$context['poll']['show_results'] to the beginning of the statement.
...« I say wedge wedge (in the butt) »
 « Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)