diff --git a/src/Item/Field.php b/src/Item/Field.php index 6d69216..8580c59 100644 --- a/src/Item/Field.php +++ b/src/Item/Field.php @@ -391,7 +391,7 @@ class Field implements \IteratorAggregate, FieldInterface { * {@inheritdoc} */ public function setType($type) { - if ($this->isTypeLocked()) { + if ($type != $this->type && $this->isTypeLocked()) { $args['%field'] = $this->getLabel(); $args['%index'] = $this->getIndex()->label(); throw new SearchApiException(new FormattableMarkup('Trying to change the type of field %field on index %index, which is locked.', $args));