diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 55434d4de2ef6..0f9213fc2529f 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -229,8 +229,9 @@ $sql.= ", entity"; $sql.= " FROM ".MAIN_DB_PREFIX."const"; $sql.= " WHERE entity IN (".$user->entity.",".$conf->entity.")"; -if ((empty($user->entity) || $user->admin) && $debug) {} // to force for superadmin -else $sql.= " AND visible = 1"; // We must always have this. Otherwise, array is too large and submitting data fails due to apache POST or GET limits +if ((empty($user->entity) || $user->admin) && $debug) {} // to force for superadmin to debug +else if (! GETPOST('visible') || GETPOST('visible') != 'all') $sql.= " AND visible = 1"; // We must always have this. Otherwise, array is too large and submitting data fails due to apache POST or GET limits +if (GETPOST('name')) $sql.=natural_search("name", GETPOST('name')); $sql.= " ORDER BY entity, name ASC"; dol_syslog("Const::listConstant", LOG_DEBUG); diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index b6505f19e4eb0..b73d2281a3a1e 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -1380,6 +1380,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/bloc_showhide.tpl.php'; } + // Line of interventions if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) { print '