mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +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();
|
$tab[$hour][$site][$action] = array();
|
||||||
|
|
||||||
if (!isset($tab[$hour][$site][$action][$row['usr_id']]))
|
if (!isset($tab[$hour][$site][$action][$row['usr_id']]))
|
||||||
|
{
|
||||||
$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']))
|
if (!in_array($row['final'], $tab[$hour][$site][$action][$row['usr_id']]['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 hour, sites in record.get_short_history() %}
|
||||||
{% for site, actions in sites %}
|
{% for site, actions in sites %}
|
||||||
{% for action, users in actions %}
|
{% for action, users in actions %}
|
||||||
{% for current_user, done in users %}
|
{% for done in users %}
|
||||||
|
|
||||||
<div style="margin:3px 0">
|
<div style="margin:3px 0">
|
||||||
|
|
||||||
@@ -55,9 +55,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="actor">
|
<span class="actor">
|
||||||
{% if user.ACL().has_right_on_base(record.get_base_id(), 'canreport') %}
|
{% if user.ACL().has_right_on_base(record.get_base_id(), 'canreport') %}
|
||||||
{% set user_infos = user.getInfos(current_user) %}
|
{% if done['user'].get_id() != session.get_usr_id() %}
|
||||||
{% if current_user != session.get_usr_id() and user_infos %}
|
{% set user_infos = done['user'].get_display_name() %}
|
||||||
{% trans %}report:: par {{user_infos}}{% endtrans %}
|
{% trans %}report:: par {{ user_infos }}{% endtrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user