fix: [enrichment] Applying regular expressions to values before displaying them

- So when the DB is queried to find if object
  attributes with those values already exist,
  we do not miss some stored values
pull/4584/head
chrisr3d 2019-06-20 14:41:03 +02:00
parent 08f1c4c4c8
commit b8c5825e80
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 0 deletions

View File

@ -5318,6 +5318,7 @@ class Event extends AppModel
if (!isset($attribute['to_ids'])) {
$attribute['to_ids'] = $this->Event->Attribute->typeDefinitions[$attribute['type']]['to_ids'];
}
$attribute['value'] = $this->Attribute->runRegexp($attribute['type'], $attribute['value']);
$attribute['distribution'] = (isset($attribute['distribution']) ? (int)$attribute['distribution'] : $defaultDistribution);
$attribute['sharing_group_id'] = (isset($attribute['sharing_group_id']) ? (int)$attribute['sharing_group_id'] : 0);
return $attribute;