Hi Guys,
I am implementing the mobile feature for one of my local plugins as suggested here:
https://docs.moodle.org/dev/Moodle_App_Plugins_Development_Guide#Using_otherdata using https://workplace.apps.moodledemo.net (Workplace 3.9.5)
I am using an ion-select component with the attribute multiple as true and I get a strange error like :
invalid parameter value detected (args => Invalid parameter value detected (name => Invalid parameter value detected (Invalid external api parameter: the value is "topicgiz[0]", the server was expecting "alphanumext" type): Invalid external api parameter: the value is "topicgiz[0]", the server was expecting "alphanumext" type): name => Invalid parameter value detected (Invalid external api parameter: the value is "topicgiz[0]", the server was expecting "alphanumext" type): Invalid external api parameter: the value is "topicgiz[0]", the server was expecting "alphanumext" type)
The code for the select in the mustache template looks like this:
<ion-select [(ngModel)]="CONTENT_OTHERDATA.topicgiz" multiple="true" cancelText={{#str}}
cancel, local_explore {{/str}} okText={{#str}} submit, local_explore {{/str}}
(ionChange)="updateContent({languagegiz: {{languagegiz}}, topicgiz: CONTENT_OTHERDATA.topicgiz})">
It works as expected when the multiple attribute is false, so I am just wondering if the multiple select has support.
I attached a screenshot. The parameters looks strange when multiple is true and the error makes sense in that context.
Thanks!