mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Fix #154 : short history of record are missing authors of actions
This commit is contained in:
@@ -375,8 +375,14 @@ class record_preview extends record_adapter
|
||||
$tab[$hour][$site][$action] = array();
|
||||
|
||||
if (!isset($tab[$hour][$site][$action][$row['usr_id']]))
|
||||
{
|
||||
$tab[$hour][$site][$action][$row['usr_id']] =
|
||||
array('final' => array(), 'comment' => array());
|
||||
array(
|
||||
'final' => array()
|
||||
, 'comment' => array()
|
||||
, 'user' => \User_Adapter::getInstance($row['usr_id'], $appbox)
|
||||
);
|
||||
}
|
||||
|
||||
if (!in_array($row['final'], $tab[$hour][$site][$action][$row['usr_id']]['final']))
|
||||
$tab[$hour][$site][$action][$row['usr_id']]['final'][] =
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{% for hour, sites in record.get_short_history() %}
|
||||
{% for site, actions in sites %}
|
||||
{% for action, users in actions %}
|
||||
{% for current_user, done in users %}
|
||||
{% for done in users %}
|
||||
|
||||
<div style="margin:3px 0">
|
||||
|
||||
@@ -55,9 +55,9 @@
|
||||
{% endif %}
|
||||
<span class="actor">
|
||||
{% if user.ACL().has_right_on_base(record.get_base_id(), 'canreport') %}
|
||||
{% set user_infos = user.getInfos(current_user) %}
|
||||
{% if current_user != session.get_usr_id() and user_infos %}
|
||||
{% trans %}report:: par {{user_infos}}{% endtrans %}
|
||||
{% if done['user'].get_id() != session.get_usr_id() %}
|
||||
{% set user_infos = done['user'].get_display_name() %}
|
||||
{% trans %}report:: par {{ user_infos }}{% endtrans %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user