Commit 17400cc1 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

holtine #50082 continu reverting passing user to helpers

parent 7cf489db
Pipeline #337 failed with stage
in 8 minutes and 6 seconds
......@@ -399,7 +399,7 @@ class AbonneController extends ZendAfi_Controller_Action {
? $this->_('Prolongation des prêts')
: $this->_('Prolongation du prêt');
$this->_renderExtendPopup($title, $this->view->abonne_LoansExtension($this->_user, $cards, $results, $ids));
$this->_renderExtendPopup($title, $this->view->abonne_LoansExtension($cards, $results, $ids));
}
......
......@@ -597,7 +597,7 @@ class RechercheController extends ZendAfi_Controller_Action {
$current_hold = null;
foreach($user->getReservations() as $hold) {
if (!$opac_item = Class_Exemplaire::findFirstBySIGBOperation($user, $hold))
if (!$opac_item = $hold->getExemplaireOPAC())
continue;
if ($item_id == $opac_item->getId()) {
......
......@@ -13,8 +13,7 @@ $this->closeBoite();
if (!empty($this->consultations_reservations)) {
$this->openBoite($this->_('Réservations pour la consultation sur place'));
echo $this->abonne_OnPlaceConsultationReservationsTable($this->user,
$this->consultations_reservations,
echo $this->abonne_OnPlaceConsultationReservationsTable($this->consultations_reservations,
$this->fiche);
$this->closeBoite();
}
......
......@@ -23,13 +23,11 @@
class ZendAfi_View_Helper_Abonne_LoansExtension extends ZendAfi_View_Helper_BaseHelper {
protected
$_cards,
$_results,
$_user;
$_results;
public function abonne_LoansExtension($user, $cards, $results, $ids) {
public function abonne_LoansExtension($cards, $results, $ids) {
$this->_cards = $cards;
$this->_results = $results;
$this->_user = $user;
return count($ids) == 1
? $this->_renderOneLoanExtension()
......
Markdown is supported
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