Skip to content
Snippets Groups Projects
Commit 0a41f5c4 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

fix fatal error in prets.phtml

parent 12132607
Branches
Tags
5 merge requests!1553Master,!1502Master,!1501Stable,!1363Master,!1362Master
......@@ -2,6 +2,17 @@
<div class="abonneTitre"><?php echo $this->fiche['nom_aff'];?></div>
<?php
$loans = $this->user->getLoansWithOutPNB();
$renewable_loan = [];
foreach ($loans as $loan) {
if ($loan->isRenewable())
$renewable_loan[] = $loan->getId();
}
$loans_ids = implode(';', $renewable_loan);
$extend_all = $this->tagAnchor(['action' => 'prolongerPret',
'id_pret' => $loans_ids],
$this->_('Tout prolonger'),
......@@ -19,18 +30,8 @@ if ($emprunts = $this->user->getEmprunts()) {
echo $this->abonne_LoanExport();
}
$loans = $this->user->getLoansWithOutPNB();
echo $this->abonne_Loans($loans);
$renewable_loan = [];
foreach ($loans as $loan) {
if ($loan->isRenewable())
$renewable_loan[] = $loan->getId();
}
$loans_ids = implode(';', $renewable_loan);
echo $extend_all;
if($this->user->hasPNB()) {
......
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