Fix #15689 patch of Bug project filters in projet/list.php

This commit is contained in:
lmarcouiller 2020-12-07 11:25:06 +01:00
parent 030df716a2
commit aa2f0f766d

View File

@ -144,7 +144,7 @@ $fieldstosearchall['s.nom'] = "ThirdPartyName";
$arrayfields = array();
foreach ($object->fields as $key => $val) {
// If $val['visible']==0, then we never show the field
if (!empty($val['visible'])) $arrayfields['t.'.$key] = array('label'=>$val['label'], 'checked'=>(($val['visible'] < 0) ? 0 : 1), 'enabled'=>($val['enabled'] && ($val['visible'] != 3)), 'position'=>$val['position']);
if (!empty($val['visible'])) $arrayfields['p.'.$key] = array('label'=>$val['label'], 'checked'=>(($val['visible'] < 0) ? 0 : 1), 'enabled'=>($val['enabled'] && ($val['visible'] != 3)), 'position'=>$val['position']);
}
// Add none object fields to fields for list