Fix hidden lti_version and LTI 1.3 fields in edit view and incorrect menu behavior in Javascript
This release fixes three bugs.
-
The first bug is that the
lti_versionfield is inappropriately hidden in the Studio author view edit menu when the selectedconfig_typeisdatabase. -
The second bug is that the
editable_fieldsproperty of theLtiConsumerXBlockis inappropriately excluding LTI 1.3 fields when theconfig_typeisdatabase. Theeditable_fieldsproperty should include LTI 1.3 fields even when theconfig_typeisdatabase, because the Javascript defined inxblock_studio_view.jsmay want to show these fields if the user selects a differentconfig_typein the menu. We want to support a dynamic edit menu, so these fields must be considered editable by the XBlock in order for the Javascript to be able to manipulate them. -
The third bug is in inconsistent rendering of the Studio author view edit menu. Depending on the order in which a user selects
lti_version,config_type, orlti_1p3_tool_key_mode, different sets of fields are displayed, due to the overlapping sets of rules that govern what fields should be hidden or shown for a given field selection. This commit corrects this inconsistent rendering by first showing all fields and then gradually hiding fields depending on the sets of rules, for each change to the fields.