From 40e4ec4d5db009f80b96c4b7676eb7f38d10ad53 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Dec 2010 00:00:28 +0000 Subject: [PATCH] Fix: only visible const must be visible --- htdocs/admin/const.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 6c223d77dbc..4d1fd442572 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -196,7 +196,7 @@ $sql.= ", note"; $sql.= ", entity"; $sql.= " FROM ".MAIN_DB_PREFIX."const"; $sql.= " WHERE entity IN (".$user->entity.",".$conf->entity.")"; -if ($user->entity || $conf->global->MAIN_FEATURES_LEVEL < 2) $sql.= " AND visible = 1"; +if ($user->entity || empty($conf->multicompany->enabled)) $sql.= " AND visible = 1"; $sql.= " ORDER BY entity, name ASC"; dol_syslog("Const::listConstant sql=".$sql);