This commit is contained in:
Laurent Destailleur 2025-10-22 18:28:00 +02:00
parent 2f64e56ef2
commit c465a5c8da

View file

@ -689,6 +689,8 @@ function ajax_constantonoff($code, $input = array(), $entity = null, $revertonof
$input = array();
}
$out = '';
if (empty($conf->use_javascript_ajax) || $forcenoajax) {
if (!getDolGlobalString($code)) {
$out = '<a '.($morecss ? 'class="'.$morecss.'" ' : '').'href="'.$_SERVER['PHP_SELF'].'?action=set_'.$code.'&token='.newToken().'&entity='.$entity.($mode ? '&mode='.$mode : '').($forcereload ? '&dol_resetcache=1' : '').'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';