MOBILE-2333 siteplugins: Receive otherdata as array instead of string
parent
489de4fc09
commit
30511db131
|
@ -217,8 +217,7 @@ export class CoreSitePluginsProvider {
|
|||
return this.sitesProvider.getCurrentSite().read('tool_mobile_get_content', data, preSets);
|
||||
}).then((result) => {
|
||||
if (result.otherdata) {
|
||||
result.otherdata = this.textUtils.parseJSON(result.otherdata, {},
|
||||
this.logger.error.bind(this.logger, 'Error parsing get_content otherdata', method));
|
||||
result.otherdata = this.utils.objectToKeyValueMap(result.otherdata, 'name', 'value');
|
||||
} else {
|
||||
result.otherdata = {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue