ソースを参照

Anomalie #74: err 500 mise a jour tag favoris

bastien 13 年 前
コミット
597acc53c1
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      src/Muzich/CoreBundle/Entity/User.php

+ 2 - 1
src/Muzich/CoreBundle/Entity/User.php ファイルの表示

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