Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
10bf134e
Commit
10bf134e
authored
Jul 26, 2018
by
Mat
Browse files
hop
parent
f442fe5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/APIBundle/Controller/LettreAPIController.php
View file @
10bf134e
...
@@ -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
);
...
...
src/PotageBundle/Resources/views/LettreInfos/ajaxDisplay.js
100755 → 100644
View file @
10bf134e
...
@@ -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
()
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment