From 7348f0bf4f3a02869733fdc73eddfae631df25d5 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 10 Apr 2025 20:24:35 +0200 Subject: [PATCH] fix: display back help button in switch fields cf #2615 --- umap/static/umap/js/modules/form/fields.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/form/fields.js b/umap/static/umap/js/modules/form/fields.js index 33002dbc..c3a23bd4 100644 --- a/umap/static/umap/js/modules/form/fields.js +++ b/umap/static/umap/js/modules/form/fields.js @@ -925,7 +925,8 @@ Fields.Url = class extends Fields.Input { Fields.Switch = class extends Fields.CheckBox { getTemplate() { const label = this.properties.label - return `${super.getTemplate()}` + const help = this.properties.helpEntries?.join() || '' + return `${super.getTemplate()}` } build() {