Skip to content

Commit 2271e14

Browse files
committed
fix(entityconfig): use foreign key
1 parent 5bd752d commit 2271e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/entityconfig.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ public function showFormForEntity(Entity $entity) {
162162
return false;
163163
}
164164

165-
if (!$this->getFromDB($ID)) {
165+
if (!$this->getFromDbByCrit(['entities_id' => $ID])) {
166166
$this->add([
167-
'id' => $ID,
167+
'entities_id' => $ID,
168168
'replace_helpdesk' => self::CONFIG_PARENT,
169169
'is_kb_separated' => self::CONFIG_PARENT,
170170
'is_search_visible' => self::CONFIG_PARENT,

0 commit comments

Comments
 (0)