Skip to content

Commit 4489511

Browse files
floretanbojanz
authored andcommitted
Issue #2846596 by floretan: RemoteId fields cannot use "0" as a value
1 parent 6150c42 commit 4489511

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin/Field/FieldType/RemoteIdItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function mainPropertyName() {
6666
* {@inheritdoc}
6767
*/
6868
public function isEmpty() {
69-
return empty($this->provider) || empty($this->remote_id);
69+
return empty($this->provider) || $this->remote_id === NULL || $this->remote_id === '';
7070
}
7171

7272
}

0 commit comments

Comments
 (0)