Преглед на файлове

Merge branch 'web_sannong_fr' into dev

15313670163 преди 1 месец
родител
ревизия
d7c90ed827
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      app/JsonRpc/NewsService.php

+ 1 - 3
app/JsonRpc/NewsService.php

@@ -894,10 +894,8 @@ class NewsService implements NewsServiceInterface
                         if(!empty($choice_id)){
                             $key = array_search($choice['other']['id'], $choice_id);
                             if ($key!== false) {
-                                unset($choice_id[$key]);
-                                $choice_id = array_values($choice_id);
+                                $$choice_id[$key]=$choice['other']['other_id'];
                             }
-                            array_push($choice_id,$choice['other']['other_id']);
                         }else{
                             $choice_id[0] = $choice['other']['other_id'];
                         }