diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 49526696157..18546d67dc1 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -79,9 +79,9 @@ $familyinfo=array( $param=''; if ($search_keyword) $param.='&search_keyword='.urlencode($search_keyword); -if ($search_status) $param.='&search_status='.urlencode($search_status); -if ($search_nature) $param.='&search_nature='.urlencode($search_nature); -if ($search_version) $param.='&search_version='.urlencode($search_version); +if ($search_status > -1) $param.='&search_status='.urlencode($search_status); +if ($search_nature > -1) $param.='&search_nature='.urlencode($search_nature); +if ($search_version > -1) $param.='&search_version='.urlencode($search_version); $dirins=DOL_DOCUMENT_ROOT.'/custom'; $urldolibarrmodules='https://www.dolistore.com/'; @@ -691,7 +691,8 @@ if ($mode == 'common') } else if (! empty($objMod->always_enabled) || ((! empty($conf->multicompany->enabled) && $objMod->core_enabled) && ($user->entity || $conf->entity!=1))) { - print $langs->trans("Required"); + if ($objMod->alreadyUsed()) print $langs->trans("Used"); + else print $langs->trans("Required"); if (! empty($conf->multicompany->enabled) && $user->entity) $disableSetup++; } else diff --git a/htdocs/blockedlog/admin/blockedlog.php b/htdocs/blockedlog/admin/blockedlog.php index 5aa202e2806..091e520c333 100644 --- a/htdocs/blockedlog/admin/blockedlog.php +++ b/htdocs/blockedlog/admin/blockedlog.php @@ -30,7 +30,7 @@ $langs->load("admin"); $langs->load("other"); $langs->load("blockedlog"); -if (! $user->admin) accessforbidden(); +if (! $user->admin || empty($conf->blockedlog->enabled)) accessforbidden(); $action = GETPOST('action','alpha'); $backtopage = GETPOST('backtopage', 'alpha'); @@ -76,9 +76,8 @@ if (preg_match('/del_(.*)/',$action,$reg)) * View */ -$block_static = new BlockedLog($db); - $form=new Form($db); +$block_static = new BlockedLog($db); llxHeader('',$langs->trans("BlockedLogSetup")); @@ -107,8 +106,7 @@ print ''; if (!empty($conf->global->BLOCKEDLOG_USE_REMOTE_AUTHORITY)) { // Example with a yes / no select - $var=!$var; - print '