diff --git a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/field_type/TestItem.php b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/field_type/TestItem.php index 396abc4..b136707 100644 --- a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/field_type/TestItem.php +++ b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/field_type/TestItem.php @@ -113,7 +113,7 @@ public function getCacheData() { // To keep the test non-intrusive, only act for instances with the // 'test_cached_data' setting explicitly set to TRUE. Also don't add // anything on empty values. - if ($this->getFieldSetting('test_cached_data') && $this->getValue()) { + if ($this->getFieldSetting('test_cached_data') && !$this->isEmpty()) { // Set the additional value so that getValue() will return it. $this->additional_key = 'additional_value'; }