ES-DOC / esdoc-questionnaire

ES-DOC Questionnaire (webform generator for creating CIM Documents). POC: @allynt
Other
2 stars 1 forks source link

Modifying details of scientific category customizations in the customizer form change the wrong underlying customizations #420

Closed allynt closed 8 years ago

allynt commented 8 years ago

WHO: @allynt

In the customizer, scientific category customization forms are bound to elements in a JS dictionary. The index that is passed to the form during form generation - which that form uses to map itself to the appropriate JS dictionary object - is incorrect. This is b/c that index is being reset every time the template loops through another vocabulary/component. (That explains whey this issue doesn't happen w/ standard category customizations).

allynt commented 8 years ago

This has been fixed by setting "index" to "get_model_index(category, model_customization.scientific_categories)" instead of "$index" in the "section" directive.