Browse Source

suppression ligne qui empechait la creation d'un panier

SiM 5 years ago
parent
commit
01eb3ba865
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/model/KataoUser.php

+ 2 - 2
lib/model/KataoUser.php

@@ -102,7 +102,7 @@ class KataoUser extends BaseKataoUser {
      */
     public function getCart($katao_period_id = false, $katao_node_id = false, $ignore_status = false) {
         $sf_user = sfContext::getInstance()->getUser();
-        return new KataoCart; // A VIRER 
+        //return new KataoCart; // A VIRER 
         return KataoCartPeer::retrieveByUserAndPeriodAndNode($this->getId(), 
             $katao_period_id?$katao_period_id:$sf_user->getActivePeriod()->getId(), 
             $katao_node_id?$katao_node_id:$sf_user->getActiveNode()->getId(), $ignore_status);
@@ -321,4 +321,4 @@ class KataoUser extends BaseKataoUser {
             $this->setGmapLng($lat_lng['lng']);
         }
     }
-}
+}