BUGFIX: Fetch record to update

This commit is contained in:
Daniel Siepmann 2017-08-21 12:10:34 +02:00
parent 4b26799e7f
commit fe754964fe
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -83,7 +83,10 @@ class TcaIndexer extends AbstractIndexer
*/
protected function getRecord($identifier)
{
$record = $this->getQuery()->execute()->fetch();
$query = $this->getQuery();
$query = $query->andWhere($this->tcaTableService->getTableName() . '.uid = ' . (int) $identifier);
$record = $query->execute()->fetch();
if ($record === false || $record === null) {
throw new NoRecordFoundException(