1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-07 15:26:54 +02:00

Update PageValues class to call $page->getField() rather than $this->getField() since it may be overridden by descending Page object (RepeaterMatrixPage for example)

This commit is contained in:
Ryan Cramer
2024-03-28 08:48:21 -04:00
parent 3256cb9000
commit 4f55480fc7

View File

@@ -879,7 +879,7 @@ class PageValues extends Wire {
$template = $page->template();
if(!$template) return $page->_parentGet($key);
$field = $this->getField($page, $key);
$field = $page->getField($key);
$value = $page->_parentGet($key);
if(!$field) return $value; // likely a runtime field, not part of our data
@@ -1047,7 +1047,7 @@ class PageValues extends Wire {
}
// check if the given key resolves to a Field or not
$field = $this->getField($page, $key);
$field = $page->getField($key);
if(!$field) {
// not a known/saveable field, let them use it for runtime storage
$valPrevious = $page->_parentGet($key);