Revert "Fixed page save failing because of uploaded images [#3191]"

This reverts commit 2c866f3c10.

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
Andy Miller 2021-02-01 21:33:26 -07:00
parent 7def7af8ff
commit b681a86646
No known key found for this signature in database
GPG Key ID: 2B07A47E470BCFDE

View File

@ -354,8 +354,8 @@ class FlexPageObject extends FlexObject implements PageInterface, FlexTranslateI
*/
public function setNestedProperty($property, $value, $separator = null)
{
if (strpos($property, 'header' . $separator) === 0) {
$this->getProperty('header')->set(str_replace('header' . $separator, '', $property), $value, $separator);
if (strpos($property, 'header.') === 0) {
$this->getProperty('header')->set(str_replace('header.', '', $property), $value, $separator);
return $this;
}
@ -372,8 +372,8 @@ class FlexPageObject extends FlexObject implements PageInterface, FlexTranslateI
*/
public function unsetNestedProperty($property, $separator = null)
{
if (strpos($property, 'header' . $separator) === 0) {
$this->getProperty('header')->undef(str_replace('header' . $separator, '', $property), $separator);
if (strpos($property, 'header.') === 0) {
$this->getProperty('header')->undef(str_replace('header.', '', $property), $separator);
return $this;
}