Merge pull request #1929 from albertgasset/MOBILE-2856

Mobile 2856
main
Juan Leyva 2019-05-22 17:36:22 +02:00 committed by GitHub
commit c62237e1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,6 @@
"recorddisapproved": "Entry unapproved",
"resetsettings": "Reset filters",
"search": "Search",
"single": "View single",
"selectedrequired": "All selected required",
"single": "View single",
"timeadded": "Time added",

View File

@ -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]);
}
}