From a85623dc23bd1785947e6522e34d3121ce4a3464 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 15 Nov 2010 17:33:47 +0100 Subject: [PATCH] LSformElement_select : Added error message on display an unrecognized value --- public_html/includes/class/class.LSformElement_select.php | 1 + public_html/templates/default/LSformElement_select.tpl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/public_html/includes/class/class.LSformElement_select.php b/public_html/includes/class/class.LSformElement_select.php index c0f96d60..f2eb81ba 100644 --- a/public_html/includes/class/class.LSformElement_select.php +++ b/public_html/includes/class/class.LSformElement_select.php @@ -55,6 +55,7 @@ class LSformElement_select extends LSformElement { LSsession :: addJSscript('LSformElement_select.js'); } $params['possible_values'] = $this -> params['text_possible_values']; + $params['unrecognized_value_label_format'] = _("%{value} (unrecognized value)"); $return['html'] = $this -> fetchTemplate(NULL,$params); return $return; } diff --git a/public_html/templates/default/LSformElement_select.tpl b/public_html/templates/default/LSformElement_select.tpl index 99de2ef6..df4c4f43 100644 --- a/public_html/templates/default/LSformElement_select.tpl +++ b/public_html/templates/default/LSformElement_select.tpl @@ -1,7 +1,11 @@