diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php
index 432a0e628db..1977cfac6e4 100644
--- a/htdocs/core/ajax/ajaxdirtree.php
+++ b/htdocs/core/ajax/ajaxdirtree.php
@@ -288,6 +288,7 @@ if (empty($conf->use_javascript_ajax) || !empty($conf->global->MAIN_ECM_DISABLE_
print '
';
$userstatic->id = $val['fk_user_c'];
$userstatic->lastname = $val['login_c'];
+ $userstatic->statut = $val['statut_c'];
$htmltooltip = ''.$langs->trans("ECMSection").': '.$val['label'].' ';
$htmltooltip = ''.$langs->trans("Type").': '.$langs->trans("ECMSectionManual").' ';
$htmltooltip .= ''.$langs->trans("ECMCreationUser").': '.$userstatic->getNomUrl(1, '', false, 1).' ';
@@ -454,6 +455,7 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
print ' | ';
$userstatic->id = isset($val['fk_user_c']) ? $val['fk_user_c'] : 0;
$userstatic->lastname = isset($val['login_c']) ? $val['login_c'] : 0;
+ $userstatic->statut = isset($val['statut_c']) ? $val['statut_c'] : 0;
$htmltooltip = ''.$langs->trans("ECMSection").': '.$val['label'].' ';
$htmltooltip = ''.$langs->trans("Type").': '.$langs->trans("ECMSectionManual").' ';
$htmltooltip .= ''.$langs->trans("ECMCreationUser").': '.$userstatic->getNomUrl(1, '', false, 1).' ';
diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php
index 5222fc0d21a..52897e84b1a 100644
--- a/htdocs/ecm/class/ecmdirectory.class.php
+++ b/htdocs/ecm/class/ecmdirectory.class.php
@@ -646,6 +646,7 @@ class EcmDirectory extends CommonObject
$sql .= " c.fk_user_c,";
$sql .= " c.date_c,";
$sql .= " u.login as login_c,";
+ $sql .= " u.statut as statut_c,";
$sql .= " ca.rowid as rowid_fille";
$sql .= " FROM ".MAIN_DB_PREFIX."user as u, ".MAIN_DB_PREFIX."ecm_directories as c";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."ecm_directories as ca";
@@ -667,7 +668,8 @@ class EcmDirectory extends CommonObject
$this->cats[$obj->rowid]['description'] = $obj->description;
$this->cats[$obj->rowid]['cachenbofdoc'] = $obj->cachenbofdoc;
$this->cats[$obj->rowid]['date_c'] = $this->db->jdate($obj->date_c);
- $this->cats[$obj->rowid]['fk_user_c'] = $obj->fk_user_c;
+ $this->cats[$obj->rowid]['fk_user_c'] = (int) $obj->fk_user_c;
+ $this->cats[$obj->rowid]['statut_c'] = (int) $obj->statut_c;
$this->cats[$obj->rowid]['login_c'] = $obj->login_c;
if (!empty($obj->rowid_fille)) {
|