diff --git a/src/Controller/ApiAmvsController.php b/src/Controller/ApiAmvsController.php index 99da152..57280f7 100644 --- a/src/Controller/ApiAmvsController.php +++ b/src/Controller/ApiAmvsController.php @@ -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']) {