Fork me on GitHub
Subscribe 2

Ticket #1062 (fixed bug)

Edit.php and checkboxes

  • Created: 2015-12-02 15:21:08
  • Reported by: Visman
  • Assigned to: quy
  • Milestone: 1.5.10
  • Component: code
  • Priority: normal

If $cur_post['hide_smilies'] == '1' -> checkbox "Never show smilies as icons for this post" OFF -> Preview
==>
checkbox "Never show smilies as icons for this post" ON (It is again switched on).

Possible decision

	if (isset($_POST['hide_smilies']) || $cur_post['hide_smilies'] == '1')

-->

	if (isset($_POST['form_sent']) && isset($_POST['hide_smilies']) || !isset($_POST['form_sent']) && $cur_post['hide_smilies'] == '1')

Similarly, for "sticky topic".

History

quy 2015-12-02 19:37:27

  • Component changed from usability to code.
  • Milestone set to 1.5.10.
  • Owner set to quy.
  • Type changed from enhancement to bug.

quy 2015-12-02 20:32:57

Commit e9cbbbc to fluxbb 1.5-next

#1062 Fix checked option if unchecked from reverting when previewing in edit

Franz 2015-12-06 20:22:54

Commit 8066a42 to fluxbb 1.5-next

Merge pull request #177 from Quy/1062

#1062 Fix checked option if unchecked from reverting when previewing in edit

quy 2015-12-07 05:57:24

  • Status changed from open to fixed.

Thanks Visman.

quy 2016-06-16 07:51:27

Commit 1a85a0f to fluxbb master

#1062 Fix checked option if unchecked from reverting when previewing in edit