MDL-51569 mod_choice: Validate the submitted optionid
commit0bca12977558bb79ccdd931cdaa9ffcda56193cb
authorDamyon Wiese <damyon@moodle.com>
Thu, 5 Nov 2015 08:26:46 +0000 (5 16:26 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 5 Nov 2015 10:48:40 +0000 (5 10:48 +0000)
tree96ff25608008925ed960422a0bdfcff20882ad5e
parent2759c1218d7a04cd4fde85d3f2a21593ad0b00d9
MDL-51569 mod_choice: Validate the submitted optionid

Make sure any submitted choice options actually belong to the current choice
module.
mod/choice/lib.php
mod/choice/tests/lib_test.php