Skip to content
Snippets Groups Projects
Commit e8301045 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #5231 add [res_letterbox.initiator] in datasource

parent 1f7e18e0
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,11 @@ $doc['category_id'] = html_entity_decode($_SESSION['coll_categories']['letterbox
$doc['nature_id'] = $_SESSION['mail_natures'][$doc['nature_id']];
$stmt2 = $dbDatasource->query("SELECT entity_label FROM entities WHERE entity_id = ? ", array($doc['initiator']));
$initiator = $stmt2->fetch(PDO::FETCH_ASSOC);
$doc['initiator'] = $initiator['entity_label'];
$datasources['res_letterbox'][] = $doc;
......
......@@ -77,12 +77,16 @@ foreach($events as $event) {
$stmt = $dbDatasource->query($query, $arrayPDO);
$res = $stmt->fetch(PDO::FETCH_ASSOC);
// Lien vers la page dtail
// Lien vers la page dtail
$urlToApp = str_replace('//', '/', $maarchUrl . '/apps/' . $maarchApps . '/index.php?');
$res['linktodoc'] = $urlToApp . 'display=true&page=view_resource_controler&dir=indexing_searching&id=' . $res['res_id'];
$res['linktodetail'] = $urlToApp . 'page=details&dir=indexing_searching&id=' . $res['res_id'];
$res['linktoprocess'] = $urlToApp . 'page=view_baskets&module=basket&baskets=MyBasket&directLinkToAction&resid=' . $res['res_id'];
$stmt2 = $dbDatasource->query("SELECT entity_label FROM entities WHERE entity_id = ? ", array($res['initiator']));
$initiator = $stmt2->fetch(PDO::FETCH_ASSOC);
$res['initiator'] = $initiator['entity_label'];
// Insertion
$datasources['res_letterbox'][] = $res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment