mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Preserve post options when refusing to save the post as a draft. #39115
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9859 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
68e2102f20
commit
63f5cff824
2 changed files with 42 additions and 0 deletions
|
@ -177,6 +177,7 @@
|
||||||
<li>[Fix] Correctly set attachment flag for topics, posts and pms after deleting attachments (Bug #48265 - Patch by WorldWar and nickvergessen)</li>
|
<li>[Fix] Correctly set attachment flag for topics, posts and pms after deleting attachments (Bug #48265 - Patch by WorldWar and nickvergessen)</li>
|
||||||
<li>[Fix] Display "Locked" button instead of "Reply" one for locked forum in viewtopic (prosilver). (Bug #38055 - Patch by Raimon)</li>
|
<li>[Fix] Display "Locked" button instead of "Reply" one for locked forum in viewtopic (prosilver). (Bug #38055 - Patch by Raimon)</li>
|
||||||
<li>[Fix] Correctly propagate umlauts over search result pages (Bug #33755)</li>
|
<li>[Fix] Correctly propagate umlauts over search result pages (Bug #33755)</li>
|
||||||
|
<li>[Fix] Preserve post options when refusing to save the post as a draft. (Bug #39115)</li>
|
||||||
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
|
<li>[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.</li>
|
||||||
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
|
<li>[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)</li>
|
||||||
<li>[Change] Template engine now permits to a limited extent variable includes.</li>
|
<li>[Change] Template engine now permits to a limited extent variable includes.</li>
|
||||||
|
|
|
@ -545,6 +545,47 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && (
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hidden_fields = array(
|
||||||
|
'icon_id' => 0,
|
||||||
|
|
||||||
|
'disable_bbcode' => false,
|
||||||
|
'disable_smilies' => false,
|
||||||
|
'disable_magic_url' => false,
|
||||||
|
'attach_sig' => true,
|
||||||
|
'lock_topic' => false,
|
||||||
|
|
||||||
|
'topic_type' => POST_NORMAL,
|
||||||
|
'topic_time_limit' => 0,
|
||||||
|
|
||||||
|
'poll_title' => '',
|
||||||
|
'poll_option_text' => '',
|
||||||
|
'poll_max_options' => 1,
|
||||||
|
'poll_length' => 0,
|
||||||
|
'poll_vote_change' => false,
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach ($hidden_fields as $name => $default)
|
||||||
|
{
|
||||||
|
if (!isset($_POST[$name]))
|
||||||
|
{
|
||||||
|
// Don't include it, if its not available
|
||||||
|
unset($hidden_fields[$name]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_bool($default))
|
||||||
|
{
|
||||||
|
// Use the string representation
|
||||||
|
$hidden_fields[$name] = request_var($name, '');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$hidden_fields[$name] = request_var($name, $default);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$s_hidden_fields .= build_hidden_fields($hidden_fields);
|
||||||
|
|
||||||
confirm_box(false, 'SAVE_DRAFT', $s_hidden_fields);
|
confirm_box(false, 'SAVE_DRAFT', $s_hidden_fields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue