mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 12:31:17 +02:00
Fix issue with $page->setForced() not populating $settings array when it should (interfered with new findJoin functions)
This commit is contained in:
@@ -816,7 +816,12 @@ class Page extends WireData implements \Countable, WireMatchable {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function setForced($key, $value) {
|
public function setForced($key, $value) {
|
||||||
return parent::set($key, $value);
|
if(isset($this->settings[$key])) {
|
||||||
|
$this->settings[$key] = $value;
|
||||||
|
} else {
|
||||||
|
parent::set($key, $value);
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user