mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Attempt fix issue processwire/processwire-issues#1992
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user