From 13aae518665d1f01aee075efe15aba68c1f3576b Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 21 Jul 2007 16:11:09 +0000 Subject: [PATCH] #13657 - thanks Thatbitextra git-svn-id: file:///svn/phpbb/trunk@7917 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 3 ++- phpBB/posting.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 4450be81d6..a821985f4c 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -264,7 +264,8 @@ p a {
  • [Feature] Ability to disable birthdays completely with new board features setting
  • [Fix] Fix disallowed username check (Bug #13511)
  • [Fix] Allow for unicode usernames to be pruned (Bug #13643)
  • -
  • [Fix] Do not copy forum permissions from self(Bug #13663)
  • +
  • [Fix] Do not copy forum permissions from self (Bug #13663)
  • +
  • [Fix] Allow for polls to work during preview (Bug #13657) - thanks to Thatbitextra
  • diff --git a/phpBB/posting.php b/phpBB/posting.php index 20a1c9c73b..282f651f43 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1070,10 +1070,11 @@ if (!sizeof($error) && $preview) $preview_poll_options = explode('
    ', $parse_poll->message); unset($parse_poll); - foreach ($preview_poll_options as $option) + foreach ($preview_poll_options as $key => $option) { $template->assign_block_vars('poll_option', array( - 'POLL_OPTION_CAPTION' => $option) + 'POLL_OPTION_CAPTION' => $option, + 'POLL_OPTION_ID' => $key + 1) ); } unset($preview_poll_options);