openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 09518638d18e3ea0ced114b8c8b6e727b79edc73
parent 157810411325695ef00f5a2c33f404f5676cf3b4
Author: dankert <openrat@jandankert.de>
Date:   Mon,  6 Dec 2021 02:22:45 +0100

Fix for: Do not store value is nothing has changed.

Diffstat:
Mmodules/cms/action/page/PageAllAction.class.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/cms/action/page/PageAllAction.class.php b/modules/cms/action/page/PageAllAction.class.php @@ -253,12 +253,13 @@ class PageAllAction extends PageAction implements Method { $this->addWarningFor($value, Messages::CONCURRENT_VALUE_CHANGE, array('last_change_time' => date(L::lang('DATE_FORMAT'), $lastChangeTime))); // Check if anything has changed - if ( $oldValue->publish == $value->publish && - $oldValue->text == $value->text && + if ( $oldValue->text == $value->text && $oldValue->linkToObjectId == $value->linkToObjectId && $oldValue->format == $value->format && $oldValue->number == $value->number && - $oldValue->date == $value->date ) + $oldValue->date == $value->date && + !(!$oldValue->publish && $value->publish) + ) continue; // nothing has changed. // Inhalt speichern