We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fieldtype() on null
1 parent 7669ee4 commit 216887dCopy full SHA for 216887d
src/Fieldtypes/SourceFieldtype.php
@@ -36,6 +36,13 @@ public function preProcess($data)
36
return ['source' => 'inherit', 'value' => $data];
37
}
38
39
+ // Handle issue with legacy `sitemap: true` section default.
40
+ // This shouldn't ever be explicitly set `true` in Statamic v3,
41
+ // but it may be migrated as `true` when coming from Statamic v2.
42
+ if ($this->field->handle() === 'sitemap' && $originalData === true) {
43
+ return ['source' => 'inherit', 'value' => null];
44
+ }
45
+
46
return ['source' => 'custom', 'value' => $data];
47
48
0 commit comments