FIX получение массива точек
This commit is contained in:
parent
c92baf7171
commit
46cbb827b2
|
|
@ -15,8 +15,8 @@ class JsonController extends Controller
|
||||||
$categories = $categories->getAll();
|
$categories = $categories->getAll();
|
||||||
|
|
||||||
foreach ($points as &$point) {
|
foreach ($points as &$point) {
|
||||||
$point->categoryIcon = $categories[$point->categoryId]['icon'];
|
$point['categoryIcon'] = $categories[$point['categoryId']]['icon'];
|
||||||
$point->categoryName = $categories[$point->categoryId]['name'];
|
$point['categoryName'] = $categories[$point['categoryId']]['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
self::renderPartial('json.php', array(
|
self::renderPartial('json.php', array(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue