1
0
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:
Ryan Cramer
2021-02-07 08:15:18 -05:00
parent 5a2c4c2014
commit 4406086241

View File

@@ -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;
} }
/** /**