Commit 10bf134e authored by Mat's avatar Mat

hop

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