From b8c00a8708d0c2d2a54219acf41eceec46cab9c8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 10 Sep 2020 15:52:29 +0200 Subject: [PATCH] LSattr_html::select_box: fix double translation of labels on unfreeze field --- src/includes/class/class.LSformElement_select_box.php | 1 - src/templates/default/LSformElement_select_box.tpl | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/includes/class/class.LSformElement_select_box.php b/src/includes/class/class.LSformElement_select_box.php index e3b039e2..05eee031 100644 --- a/src/includes/class/class.LSformElement_select_box.php +++ b/src/includes/class/class.LSformElement_select_box.php @@ -47,7 +47,6 @@ class LSformElement_select_box extends LSformElement_select { if (!$this -> isFreeze()) { LStemplate :: addCssFile('LSformElement_select_box.css'); } - $this -> fetchVariables['translate_labels'] = $this -> getParam('translate_labels', true); return parent :: getDisplay(); } diff --git a/src/templates/default/LSformElement_select_box.tpl b/src/templates/default/LSformElement_select_box.tpl index d6ad896b..a2ea5efe 100644 --- a/src/templates/default/LSformElement_select_box.tpl +++ b/src/templates/default/LSformElement_select_box.tpl @@ -19,7 +19,7 @@ @@ -27,7 +27,7 @@ {/if} {else}
  • - +
  • {/if} {/foreach}