Skip to content

Commit

Permalink
MetaData: fix reading out duplicated of vocab values
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitz-ilias committed Nov 15, 2024
1 parent c730973 commit db9bdab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function findAlreadyExistingValues(
string ...$values
): \Generator {
$result = $this->db->query(
'SELECT value FROM il_md_vocab_contr_vals JOIN il_md_vocab_contr ON vocab_id
'SELECT value FROM il_md_vocab_contr_vals JOIN il_md_vocab_contr ON id = vocab_id
WHERE slot = ' . $this->db->quoteAsString($slot->value) . ' AND ' .
$this->db->in('value', ...$values)
);
Expand Down Expand Up @@ -176,7 +176,7 @@ public function getLabelsForValues(
}

$result = $this->db->query(
'SELECT value, label FROM il_md_vocab_contr_vals JOIN il_md_vocab_contr ON vocab_id
'SELECT value, label FROM il_md_vocab_contr_vals JOIN il_md_vocab_contr ON id = vocab_id
WHERE slot = ' . $this->db->quoteAsString($slot->value) . ' AND ' . $active_where .
$this->db->in('value', ...$values)
);
Expand Down

0 comments on commit db9bdab

Please sign in to comment.