|
|
|
|
420
|
|
420
|
|
421
|
if (count($ids_to_add))
|
421
|
if (count($ids_to_add))
|
422
|
{
|
422
|
{
|
|
|
423
|
+ $ids_to_add = array_merge($ids_to_add);
|
423
|
$tag_favorite_position_max = $this->getTagFavoritePositionMax();
|
424
|
$tag_favorite_position_max = $this->getTagFavoritePositionMax();
|
424
|
$tags = $em->getRepository('MuzichCoreBundle:Tag')->findByIds($ids_to_add)->execute();
|
425
|
$tags = $em->getRepository('MuzichCoreBundle:Tag')->findByIds($ids_to_add)->execute();
|
425
|
-
|
|
|
|
|
426
|
+
|
426
|
// Pour les nouveaux ids restants
|
427
|
// Pour les nouveaux ids restants
|
427
|
foreach ($tags as $tag)
|
428
|
foreach ($tags as $tag)
|
428
|
{
|
429
|
{
|