Commit 10bf134e authored by Mat's avatar Mat
Browse files

hop

parent f442fe5f
...@@ -154,15 +154,13 @@ class LettreAPIController extends MasterAPIController ...@@ -154,15 +154,13 @@ class LettreAPIController extends MasterAPIController
public function readInfosAction($id) public function readInfosAction($id)
{ {
$em = $this->getDoctrine()->getManager();
// Récupère l'ordre de tri // Récupère l'ordre de tri
$em = $this->getDoctrine()->getManager();
$sorted = $em->getRepository('PotageBundle:Lettre')->findOneForSorted($id)->getSorted(); $sorted = $em->getRepository('PotageBundle:Lettre')->findOneForSorted($id)->getSorted();
if (!empty($sorted)) if (!empty($sorted))
{ {
$infos = $em->getRepository('PotageBundle:Info')->findAllForLettreReadInfosSorted($id, $sorted); $infos = $em->getRepository('PotageBundle:Info')->findAllForLettreReadInfosSorted($id, $sorted);
} }
else { else {
$infos = $em->getRepository('PotageBundle:Info')->findAllForLettreReadInfos($id); $infos = $em->getRepository('PotageBundle:Info')->findAllForLettreReadInfos($id);
......
...@@ -29,7 +29,7 @@ function reloadGridInfos() ...@@ -29,7 +29,7 @@ function reloadGridInfos()
/* /*
* * Insère l'offre dans le corps de l'infolettre
*/ */
function insertOffre() function insertOffre()
{ {
......
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