diff options
Diffstat (limited to 'libraries/classes/Controllers/Table/RelationController.php')
-rw-r--r-- | libraries/classes/Controllers/Table/RelationController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libraries/classes/Controllers/Table/RelationController.php b/libraries/classes/Controllers/Table/RelationController.php index 3ecf4501cc..48d94bb7ad 100644 --- a/libraries/classes/Controllers/Table/RelationController.php +++ b/libraries/classes/Controllers/Table/RelationController.php @@ -358,9 +358,8 @@ final class RelationController extends AbstractController $this->response->addJSON('columns', $columnList); - // @todo should be: $server->db($db)->table($table)->primary() $primary = Index::getPrimary($this->dbi, $foreignTable, $_POST['foreignDb']); - if ($primary === false) { + if ($primary === null) { return; } |