1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +02:00
This commit is contained in:
Ryan Cramer
2024-11-14 14:12:09 -05:00
parent 5481d713ab
commit d84d40e84c

View File

@@ -2265,8 +2265,15 @@ class PagesLoader extends Wire {
$fieldtype = $field->type; $fieldtype = $field->type;
$shortName = $fieldtype->shortName; $shortName = $fieldtype->shortName;
$cacheName = $shortName;
if(isset($fieldtypeErrors[$shortName])) return $fieldtypeErrors[$shortName]; if($fieldtype instanceof FieldtypePage) {
$cacheName .= $field->get('derefAsPage');
}
if(isset($fieldtypeErrors[$cacheName])) {
return $fieldtypeErrors[$cacheName];
}
// fieldtype status not yet known // fieldtype status not yet known
$schema = $fieldtype->getDatabaseSchema($field); $schema = $fieldtype->getDatabaseSchema($field);
@@ -2307,7 +2314,7 @@ class PagesLoader extends Wire {
} }
} }
$fieldtypeErrors[$shortName] = $error; $fieldtypeErrors[$cacheName] = $error;
return $error; return $error;
} }