Skip to content

Commit

Permalink
Feature/353 Added the string typecast to be sure it works in all the …
Browse files Browse the repository at this point in the history
…cases.
  • Loading branch information
Ruslan Baidan committed Aug 9, 2021
1 parent 527da40 commit 456299b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/ApiAmvsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function get($id)
$entity['implicitPosition'] = 1;
} else {
// We're not at the beginning, get all AMV links of the same asset, and figure out position and previous
$amvsAsset = $this->getService()->getList(1, 0, 'position', null, ['a.uuid' => $entity['asset']['uuid']]);
$amvsAsset = $this->getService()->getList(1, 0, 'position', null, ['a.uuid' => (string)$entity['asset']['uuid']]);
$i = 0;
foreach ($amvsAsset as $amv) {
if ($amv['uuid'] == $entity['uuid']) {
Expand Down

0 comments on commit 456299b

Please sign in to comment.