mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 15:57:01 +02:00
Minor optimization to Page::setAndSave
This commit is contained in:
@@ -2427,6 +2427,7 @@ class Page extends WireData implements \Countable, WireMatchable {
|
|||||||
if($of) $this->of(false);
|
if($of) $this->of(false);
|
||||||
foreach($values as $k => $v) {
|
foreach($values as $k => $v) {
|
||||||
$this->set($k, $v);
|
$this->set($k, $v);
|
||||||
|
if(!$property) $this->trackChange($k);
|
||||||
}
|
}
|
||||||
if($property) {
|
if($property) {
|
||||||
$result = $this->save($property, $options);
|
$result = $this->save($property, $options);
|
||||||
|
Reference in New Issue
Block a user