Fix option notdisable din select_user

This commit is contained in:
Laurent Destailleur 2026-04-30 13:35:06 +02:00
parent 959f8238c4
commit e7ea0db00b

View file

@ -2600,10 +2600,10 @@ class Form
$sql .= " OR rowid IN (".$this->db->sanitize(implode(',', $selected)).")"; // We must always keep the selected users to avoid to loose it/them when updating
$sql .= ")";
}
if (getDolGlobalString('USER_HIDE_NONEMPLOYEE_IN_COMBOBOX') || $notdisabled) {
if (getDolGlobalString('USER_HIDE_NONEMPLOYEE_IN_COMBOBOX')) {
$sql .= " AND u.employee <> 0";
}
if (getDolGlobalString('USER_HIDE_EXTERNAL_IN_COMBOBOX') || $notdisabled) {
if (getDolGlobalString('USER_HIDE_EXTERNAL_IN_COMBOBOX')) {
$sql .= " AND u.fk_soc IS NULL";
}
if (!empty($morefilter)) {