MDL-49184 choice: fix block actions
commit5fb2315a8bf94089d9f4819bee5337a45a679f9b
authorPetr Skoda <petr.skoda@totaralms.com>
Tue, 17 Feb 2015 03:46:36 +0000 (17 16:46 +1300)
committerPetr Skoda <petr.skoda@totaralms.com>
Tue, 17 Feb 2015 04:00:15 +0000 (17 17:00 +1300)
treed1b3a8dcc2c55c7d50a64aea824ece6b51f3d5a2
parent7357af2b0ce539130852cd53a5613485b8ae6882
MDL-49184 choice: fix block actions

The problems was that blocks editing breaks if you redirect
after if (data_submitted()) - all form actions must make sure
it is really their form, otherwise they may hijack the post from
block actions.

Note that this is not a problem for mforms, only legacy forms
are affected.

# Conflicts:
# mod/choice/view.php
mod/choice/renderer.php
mod/choice/tests/behat/block_editing.feature [new file with mode: 0644]
mod/choice/upgrade.txt [new file with mode: 0644]
mod/choice/view.php