From 268723be7bb02499c8c12ae9d50207a4a3275114 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 21 Dec 2014 01:39:20 +0100 Subject: [PATCH] Fixed: sql syntax error --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 936a3b9cb53..445aa827416 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1256,7 +1256,7 @@ class Form if (is_array($exclude) && $excludeUsers) $sql.= " AND u.rowid NOT IN ('".$excludeUsers."')"; if (is_array($include) && $includeUsers) $sql.= " AND u.rowid IN ('".$includeUsers."')"; if (! empty($conf->global->USER_HIDE_INACTIVE_IN_COMBOBOX)) $sql.= " AND u.statut <> 0"; - if (! empty($morefilter)) $sql.=$morefilter; + if (! empty($morefilter)) $sql.=" ".$morefilter; $sql.= " ORDER BY u.lastname ASC"; dol_syslog(get_class($this)."::select_dolusers", LOG_DEBUG); @@ -1342,7 +1342,7 @@ class Form $out.= ''; } $out.= ''; - + if (! empty($conf->use_javascript_ajax) && ! $show_empty) // ajaxcombo works only on list with no empty value because of   { include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php';