FIX user owner cache in event list

This commit is contained in:
lvessiller 2022-10-03 14:33:08 +02:00
parent 069371fc95
commit f18c846212

View File

@ -273,7 +273,6 @@ if (empty($reshook)) {
*/
$form = new Form($db);
$userstatic = new User($db);
$formactions = new FormActions($db);
$actionstatic = new ActionComm($db);
@ -927,6 +926,7 @@ while ($i < $imaxinloop) {
// cache of user list (owners)
if ($obj->fk_user_action > 0 && !isset($cache_user_list[$obj->fk_user_action])) {
$userstatic = new User($db);
$res = $userstatic->fetch($obj->fk_user_action);
if ($res > 0) {
$cache_user_list[$obj->fk_user_action] = $userstatic;
@ -988,6 +988,7 @@ while ($i < $imaxinloop) {
if (!empty($arrayfields['owner']['checked'])) {
print '<td class="tdoverflowmax150"' . ($event_owner_style != '' ? ' style="'.$event_owner_style.'"' : '') . '>'; // With edge and chrome the td overflow is not supported correctly when content is not full text.
if ($obj->fk_user_action > 0 && !isset($cache_user_list[$obj->fk_user_action])) {
$userstatic = new User($db);
$res = $userstatic->fetch($obj->fk_user_action);
if ($res > 0) {
$cache_user_list[$obj->fk_user_action] = $userstatic;