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);
|
return this.sitesProvider.getCurrentSite().read('tool_mobile_get_content', data, preSets);
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.otherdata) {
|
if (result.otherdata) {
|
||||||
result.otherdata = this.textUtils.parseJSON(result.otherdata, {},
|
result.otherdata = this.utils.objectToKeyValueMap(result.otherdata, 'name', 'value');
|
||||||
this.logger.error.bind(this.logger, 'Error parsing get_content otherdata', method));
|
|
||||||
} else {
|
} else {
|
||||||
result.otherdata = {};
|
result.otherdata = {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue