Skip to content

Commit

Permalink
fix(entityconfig): use entity foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 18, 2022
1 parent 86f0e06 commit d22f176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/entityconfig.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static function getUsedConfig($fieldref, $entities_id, $fieldval = '', $default_
$entity = new Entity();
$entityConfig = new self();
// Search in entity data of the current entity
if ($entity->getFromDB($entities_id)) {
if ($entity->getFromDbByCrit(['entities_id' => $entities_id])) {
// Value is defined : use it
if ($entityConfig->getFromDBByCrit(['entities_id' => $entities_id])) {
if (is_numeric($default_value)
Expand Down

0 comments on commit d22f176

Please sign in to comment.