1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00
This commit is contained in:
Ryan Cramer
2022-01-24 11:07:10 -05:00
parent beaad6e8dd
commit 25da592578
5 changed files with 9 additions and 3 deletions

View File

@@ -369,7 +369,7 @@ class PagesEditor extends Wire {
foreach($page->template->fieldgroup as $field) {
if($page->isLoaded($field->name)) continue; // value already set
if(!$page->hasField($field)) continue; // field not valid for page
if(!strlen($field->defaultValue)) continue; // no defaultValue property defined with Fieldtype config inputfields
if(!strlen("$field->defaultValue")) continue; // no defaultValue property defined with Fieldtype config inputfields
try {
$blankValue = $field->type->getBlankValue($page, $field);
if(is_object($blankValue) || is_array($blankValue)) continue; // we don't currently handle complex types