mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-21 16:10:38 +01:00
[ticket/15252] Fix editing a topic with poll by user not permitted to edit poll
Basically, decoding the original poll title and options text was missing. PHPBB3-15252
This commit is contained in:
parent
7301748a3a
commit
14cea02412
@ -1192,6 +1192,11 @@ if ($submit || $preview || $refresh)
|
||||
{
|
||||
// We have a poll but the editing user is not permitted to create/edit it.
|
||||
// So we just keep the original poll-data.
|
||||
// Decode the poll title and options text fisrt.
|
||||
$original_poll_data['poll_title'] = $bbcode_utils->unparse($original_poll_data['poll_title']);
|
||||
$original_poll_data['poll_option_text'] = $bbcode_utils->unparse($original_poll_data['poll_option_text']);
|
||||
$original_poll_data['poll_options'] = explode("\n", $original_poll_data['poll_option_text']);
|
||||
|
||||
$poll = array_merge($original_poll_data, array(
|
||||
'enable_bbcode' => $post_data['enable_bbcode'],
|
||||
'enable_urls' => $post_data['enable_urls'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user