FIX user owner cache in event list
This commit is contained in:
parent
069371fc95
commit
f18c846212
@ -273,7 +273,6 @@ if (empty($reshook)) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
$userstatic = new User($db);
|
|
||||||
$formactions = new FormActions($db);
|
$formactions = new FormActions($db);
|
||||||
|
|
||||||
$actionstatic = new ActionComm($db);
|
$actionstatic = new ActionComm($db);
|
||||||
@ -927,6 +926,7 @@ while ($i < $imaxinloop) {
|
|||||||
|
|
||||||
// cache of user list (owners)
|
// cache of user list (owners)
|
||||||
if ($obj->fk_user_action > 0 && !isset($cache_user_list[$obj->fk_user_action])) {
|
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);
|
$res = $userstatic->fetch($obj->fk_user_action);
|
||||||
if ($res > 0) {
|
if ($res > 0) {
|
||||||
$cache_user_list[$obj->fk_user_action] = $userstatic;
|
$cache_user_list[$obj->fk_user_action] = $userstatic;
|
||||||
@ -988,6 +988,7 @@ while ($i < $imaxinloop) {
|
|||||||
if (!empty($arrayfields['owner']['checked'])) {
|
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.
|
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])) {
|
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);
|
$res = $userstatic->fetch($obj->fk_user_action);
|
||||||
if ($res > 0) {
|
if ($res > 0) {
|
||||||
$cache_user_list[$obj->fk_user_action] = $userstatic;
|
$cache_user_list[$obj->fk_user_action] = $userstatic;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user