fix: [correlation] value truncation for the correlation value table

pull/8530/head
iglocska 2022-08-04 13:47:31 +02:00
parent 762035dae4
commit aa43182eca
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ class CorrelationValue extends AppModel
public function getValueId($value)
{
// index is 191 long, missing the existing value lookup can lead to a duplicate entry
$value = mb_substr($value, 0, 191);
$existingValue = $this->find('first', [
'recursive' => -1,
'conditions' => [