Verified Commit 9226ae89 authored by Alexandre Morin's avatar Alexandre Morin Committed by Arnaud Pauget
Browse files

fix (#6024) : derogation delivery request

parent 5e7493ae
......@@ -188,6 +188,14 @@ class archive
$archive->hasRights = false;
}
}
$archive->isCommunicable = '2';
if ($archive->accessRuleComDate) {
$communicationDelay = $archive->accessRuleComDate->diff(\laabs::newTimestamp());
if ($communicationDelay->invert != 0) {
$archive->isCommunicable = '1';
}
}
}
$dataTable = $this->view->getElementsByClass("dataTable")->item(0)->plugin['dataTable'];
......
......@@ -14,21 +14,6 @@
<div class="panel-body">
<h4><strong style="color:red"><span id="modal_selected"></span></strong> archives selected.</h4>
<h4>The modification will be applied on <strong style="color:red"><span id="modal_relevant"></span></strong> archives.</h4>
<!--<br/>
<div class="table-responsive">
<table id="archiveTable" class="table table-condensed">
<thead>
<th>Id</th>
<th>Archive name</th>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>-->
</div>
</div>
</div>
......
......@@ -30,7 +30,7 @@
</thead>
<tbody>
<?merge archive ?>
<tr id="[?merge .archiveId ?]" name="[?merge .archiveName ?]" class="[?merge .disposable.bool().then('danger') ?]">
<tr id="[?merge .archiveId ?]" name="[?merge .archiveName ?]" class="[?merge .disposable.bool().then('danger') ?]" data-iscommunicable="[?merge .isCommunicable ?]">
<td>
<?merge .hasRights.bool() ?>
<input type="checkbox"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment