Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Arantor on March 31st, 2012, 03:35 AM

Title: View poll results gives extra option
Post by: Arantor 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.
Title: Re: View poll results gives extra option
Post by: agent47 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?
Title: Re: View poll results gives extra option
Post by: Arantor 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.
Title: Re: View poll results gives extra option
Post by: Nao 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.