diff --git a/src/Plugin/Field/FieldType/GeolocationItem.php b/src/Plugin/Field/FieldType/GeolocationItem.php index 498b583..0b2c2b9 100644 --- a/src/Plugin/Field/FieldType/GeolocationItem.php +++ b/src/Plugin/Field/FieldType/GeolocationItem.php @@ -150,8 +150,6 @@ class GeolocationItem extends FieldItemBase { * {@inheritdoc} */ public function setValue($values, $notify = TRUE) { - parent::setValue($values, $notify); - // If the values being set do not contain lat_sin, lat_cos or lng_rad, // recalculate them. if ( @@ -166,6 +164,7 @@ class GeolocationItem extends FieldItemBase { $this->get('lat_cos')->setValue(cos(deg2rad(trim($this->get('lat')->getValue()))), FALSE); $this->get('lng_rad')->setValue(deg2rad(trim($this->get('lng')->getValue())), FALSE); } + parent::setValue($values, $notify); } /**