Skip to content

Commit

Permalink
fix(entityconfig): use foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 18, 2022
1 parent 5bd752d commit 2271e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/entityconfig.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public function showFormForEntity(Entity $entity) {
return false;
}

if (!$this->getFromDB($ID)) {
if (!$this->getFromDbByCrit(['entities_id' => $ID])) {
$this->add([
'id' => $ID,
'entities_id' => $ID,
'replace_helpdesk' => self::CONFIG_PARENT,
'is_kb_separated' => self::CONFIG_PARENT,
'is_search_visible' => self::CONFIG_PARENT,
Expand Down

0 comments on commit 2271e14

Please sign in to comment.