From 7ee08a67134485caadbdb3fae9eaca099b6e56d0 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 9 Sep 2023 10:03:42 +0300 Subject: [PATCH] fix empty attributes error --- application/Espo/ORM/Defs/EntityDefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/ORM/Defs/EntityDefs.php b/application/Espo/ORM/Defs/EntityDefs.php index 4006369c91..324a220f99 100644 --- a/application/Espo/ORM/Defs/EntityDefs.php +++ b/application/Espo/ORM/Defs/EntityDefs.php @@ -76,7 +76,7 @@ class EntityDefs public function getAttributeNameList(): array { /** @var string[] */ - return array_keys($this->data['attributes']); + return array_keys($this->data['attributes'] ?? []); } /**