mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed FlexObject::getChanges() always returning empty array
This commit is contained in:
parent
58b48c2f26
commit
33b473c290
|
|
@ -11,6 +11,7 @@
|
|||
* Fixed path traversal vulnerability when using `bin/grav server`
|
||||
* Fixed unescaped error messages in JSON error responses
|
||||
* Fixed `|t(variable)` twig filter in admin
|
||||
* Fixed `FlexObject::getChanges()` always returning empty array
|
||||
|
||||
# v1.7.24
|
||||
## 10/26/2021
|
||||
|
|
|
|||
|
|
@ -666,8 +666,10 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
|
|||
}
|
||||
|
||||
// Store the changes
|
||||
$this->_original = $this->getElements();
|
||||
$this->_changes = Utils::arrayDiffMultidimensional($this->_original, $elements);
|
||||
if ($this->_original === null) {
|
||||
$this->_original = $elements;
|
||||
}
|
||||
$this->_changes = Utils::arrayDiffMultidimensional($this->_original, $this->getElements());
|
||||
}
|
||||
|
||||
if ($files && method_exists($this, 'setUpdatedMedia')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user