From 8511f1f7ef6b8a3c191320ac7b15c0ad6fc52ef0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Apr 2015 18:14:26 +0200 Subject: [PATCH 1/4] Fix the data-role parameter --- htdocs/core/class/html.formother.class.php | 8 ++++++-- htdocs/core/lib/ajax.lib.php | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index b7971d52c53..9de656fc44e 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -362,8 +362,12 @@ class FormOther if ($conf->use_javascript_ajax) { include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php'; - $out.= ajax_combobox($htmlname); - $nodatarole=' data-role="none"'; + $htmlforcombo = ajax_combobox($htmlname); + if ($htmlforcombo) + { + $out.= $htmlforcombo; + $nodatarole=' data-role="none"'; + } } // Select each sales and print them in a select input $out.='