Skip to content

Commit d6503ae

Browse files
author
Anton Shevchuk
committed
Hotfix
1 parent 1a320a0 commit d6503ae

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/Crud/Table.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ public function readOne($primary)
6161
throw new NotFoundException('Record not found');
6262
}
6363

64-
$row = $this->filterRow($row);
65-
66-
return $row;
64+
return $this->filterRow($row);
6765
}
6866

6967
/**

tests/unit/Crud/TableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function tearDown(): void
6060
*/
6161
public function testGetPrimaryKey()
6262
{
63-
self::assertTrue(array_key_exists('id', $this->crudTable->getPrimaryKey()));
63+
self::assertTrue(array_search('id', $this->crudTable->getPrimaryKey()) !== false);
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)