MDL-74906 mod_lti: fix form selector in multi-item content item post
commit28e2f8bc2a22de43ee2ebff3f5286ab47eb9533a
authorJake Dallimore <jake@moodle.com>
Thu, 9 Jun 2022 08:46:25 +0000 (9 16:46 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 9 Jun 2022 08:53:32 +0000 (9 16:53 +0800)
tree7cd33a3df170298e6befa6d2c3475249a70056a6
parentac39bac81b047ae9caa922fd59f86c6f263f37cc
MDL-74906 mod_lti: fix form selector in multi-item content item post

Use #region-main-box and not .mform in the selector, otherwise it may
return the wrong mform, such as global search, if enabled. This is the
same way the form is selected in showMultipleSummaryAndHideForm().
mod/lti/amd/build/contentitem.min.js
mod/lti/amd/build/contentitem.min.js.map
mod/lti/amd/src/contentitem.js