1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-29 10:10:25 -07:00

Fix autocomplete image preview

This commit is contained in:
Unknown 2017-06-27 14:35:34 +02:00
parent ab97ea5557
commit 9483dc91b9

View File

@ -54,7 +54,7 @@ class SearchController extends Controller
'id' => $id, 'id' => $id,
'name' => $name, 'name' => $name,
'url' => $this->generateUrl('model_detail', ['id' => $model->getTransformed()->getId()]), 'url' => $this->generateUrl('model_detail', ['id' => $model->getTransformed()->getId()]),
'img' => $liip->getBrowserPath('-1/'.$model->getTransformed()->getId().'.png', 'part_min'), 'img' => $liip->getBrowserPath('-1/'.$model->getTransformed()->getId(), 'part_min'),
]; ];
} }
@ -68,7 +68,7 @@ class SearchController extends Controller
'id' => $id, 'id' => $id,
'name' => $name, 'name' => $name,
'url' => $this->generateUrl('set_detail', ['id' => $set->getTransformed()->getId()]), 'url' => $this->generateUrl('set_detail', ['id' => $set->getTransformed()->getId()]),
'img' => $liip->getBrowserPath($set->getTransformed()->getId().'.jpg', 'set_min'), 'img' => $liip->getBrowserPath($set->getTransformed()->getId(), 'set_min'),
]; ];
} }