From 47bb9aa435774b24dfca2c2b2551575ba2a9aed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 26 Mar 2019 11:30:56 +0100 Subject: [PATCH 1/5] MOBILE-2915 ratings: Fix contextual menu sync item --- src/addon/mod/data/components/index/addon-mod-data-index.html | 4 ++-- .../mod/forum/components/index/addon-mod-forum-index.html | 4 ++-- .../glossary/components/index/addon-mod-glossary-index.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/addon/mod/data/components/index/addon-mod-data-index.html b/src/addon/mod/data/components/index/addon-mod-data-index.html index 422a2b75f..d6c306669 100644 --- a/src/addon/mod/data/components/index/addon-mod-data-index.html +++ b/src/addon/mod/data/components/index/addon-mod-data-index.html @@ -7,8 +7,8 @@ - - + + diff --git a/src/addon/mod/forum/components/index/addon-mod-forum-index.html b/src/addon/mod/forum/components/index/addon-mod-forum-index.html index 9eab4d526..47b6037c1 100644 --- a/src/addon/mod/forum/components/index/addon-mod-forum-index.html +++ b/src/addon/mod/forum/components/index/addon-mod-forum-index.html @@ -4,8 +4,8 @@ - - + + diff --git a/src/addon/mod/glossary/components/index/addon-mod-glossary-index.html b/src/addon/mod/glossary/components/index/addon-mod-glossary-index.html index ad00c5d0f..b5617f259 100644 --- a/src/addon/mod/glossary/components/index/addon-mod-glossary-index.html +++ b/src/addon/mod/glossary/components/index/addon-mod-glossary-index.html @@ -7,8 +7,8 @@ - - + + From d8084bba5c6a08b40fd9299a4aac52dc41a71c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 27 Mar 2019 11:21:30 +0100 Subject: [PATCH 2/5] MOBILE-2915 scorm: Fix hide bottom tabs from MOBILE-2886 --- src/components/ion-tabs/core-ion-tabs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ion-tabs/core-ion-tabs.html b/src/components/ion-tabs/core-ion-tabs.html index d4276f461..e255871b6 100644 --- a/src/components/ion-tabs/core-ion-tabs.html +++ b/src/components/ion-tabs/core-ion-tabs.html @@ -1,4 +1,4 @@ -
+
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 3/5] 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 }; From a36a54cd848c5519b687a3ccf1934f679359c26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 28 Mar 2019 09:44:55 +0100 Subject: [PATCH 4/5] MOBILE-2915 lesson: Fix password form styling --- .../mod/lesson/components/index/addon-mod-lesson-index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addon/mod/lesson/components/index/addon-mod-lesson-index.html b/src/addon/mod/lesson/components/index/addon-mod-lesson-index.html index 61a19ce3c..f5ab57245 100644 --- a/src/addon/mod/lesson/components/index/addon-mod-lesson-index.html +++ b/src/addon/mod/lesson/components/index/addon-mod-lesson-index.html @@ -35,9 +35,9 @@
- + + {{ 'addon.mod_lesson.enterpassword' | translate }} - {{ 'addon.mod_lesson.enterpassword' | translate }} From c0e95f644a2cda92f01c7b4e6e34a734f6f6f678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 28 Mar 2019 11:04:39 +0100 Subject: [PATCH 5/5] MOBILE-2915 data: Trim url field --- src/addon/mod/data/fields/url/providers/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/mod/data/fields/url/providers/handler.ts b/src/addon/mod/data/fields/url/providers/handler.ts index ae8eb55d5..1854df829 100644 --- a/src/addon/mod/data/fields/url/providers/handler.ts +++ b/src/addon/mod/data/fields/url/providers/handler.ts @@ -54,7 +54,7 @@ export class AddonModDataFieldUrlHandler extends AddonModDataFieldTextHandler { { fieldid: field.id, subfield: '0', - value: inputData[fieldName] || '' + value: (inputData[fieldName] && inputData[fieldName].trim()) || '' } ]; }