Fix must use photo of user
This commit is contained in:
parent
fc7d27c75c
commit
fa18e788b5
@ -851,7 +851,8 @@ class ActionComm extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load all objects with filters
|
* Load all objects with filters.
|
||||||
|
* WARNING: This make a fetch on all records instead of making one request with a join.
|
||||||
*
|
*
|
||||||
* @param DoliDb $db Database handler
|
* @param DoliDb $db Database handler
|
||||||
* @param int $socid Filter by thirdparty
|
* @param int $socid Filter by thirdparty
|
||||||
|
|||||||
@ -250,12 +250,10 @@ class FormActions
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if (! empty($action->author->id))
|
if (! empty($action->userownerid))
|
||||||
{
|
{
|
||||||
$userstatic->id = $action->author->id;
|
$userstatic->fetch($action->userownerid); // TODO Introduce a cache on users fetched
|
||||||
$userstatic->firstname = $action->author->firstname;
|
print $userstatic->getNomUrl(-1, '', 0, 0, 16, 0, '', '');
|
||||||
$userstatic->lastname = $action->author->lastname;
|
|
||||||
print $userstatic->getNomUrl(1, '', 0, 0, 16, 0, '', '');
|
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="right">';
|
print '<td align="right">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user