Merge branch '2.4' into 2

This commit is contained in:
Maxime Rainville 2020-06-12 14:26:28 +12:00
commit 9f11be6a04

View File

@ -380,8 +380,6 @@ class TagField extends MultiSelectField
$titleField = $this->getTitleField();
$values = $this->Value();
/** @var Relation $relation */
$relation = $record->$name();
$ids = [];
if (!$values) {
@ -398,6 +396,9 @@ class TagField extends MultiSelectField
);
}
/** @var Relation $relation */
$relation = $record->$name();
foreach ($values as $key => $value) {
// Get or create record
$record = $this->getOrCreateTag($value);