MOBILE-2856 data: Fix apply offline actions
parent
99774954a4
commit
923bf999e8
|
@ -212,11 +212,13 @@ export class AddonModDataFieldsDelegate extends CoreDelegate {
|
|||
* @return {any} Data overriden
|
||||
*/
|
||||
overrideData(field: any, originalContent: any, offlineContent: any, offlineFiles?: any): any {
|
||||
originalContent = originalContent || {};
|
||||
|
||||
if (!offlineContent) {
|
||||
return originalContent;
|
||||
}
|
||||
|
||||
return this.executeFunctionOnEnabled(field.type, 'overrideData', [originalContent || {}, offlineContent, offlineFiles]);
|
||||
return this.executeFunctionOnEnabled(field.type, 'overrideData', [originalContent, offlineContent, offlineFiles]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue