mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Additional updates for processwire/processwire-issues#1467
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user