From c28b48cc67d82ffbea07f7028e3c766dc51c2321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 27 Mar 2019 11:32:20 +0100 Subject: [PATCH] MOBILE-2915 data: Do not show unsupported tags field --- src/addon/mod/data/pages/search/search.ts | 4 ++++ src/addon/mod/data/providers/helper.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/addon/mod/data/pages/search/search.ts b/src/addon/mod/data/pages/search/search.ts index d3eaf37a2..4ca20b5d0 100644 --- a/src/addon/mod/data/pages/search/search.ts +++ b/src/addon/mod/data/pages/search/search.ts @@ -117,6 +117,10 @@ export class AddonModDataSearchPage { [placeholder]="\'addon.mod_data.authorlastname\' | translate" formControlName="lastname">'; template = template.replace(replace, render); + // Tags are unsupported right now. + replace = new RegExp('##tags##', 'gi'); + template = template.replace(replace, ''); + return template; } diff --git a/src/addon/mod/data/providers/helper.ts b/src/addon/mod/data/providers/helper.ts index 0de845835..c713f3674 100644 --- a/src/addon/mod/data/providers/helper.ts +++ b/src/addon/mod/data/providers/helper.ts @@ -173,6 +173,7 @@ export class AddonModDataHelperProvider { comments: database.comments, // Unsupported actions. + tags: false, delcheck: false, export: false };