commit fd31f72927e128b89325e9e2885f3948711777cf parent aef5b688ce2bffc652396a13a71b27a9fc9bac31 Author: dankert <openrat@jandankert.de> Date: Mon, 6 Dec 2021 02:11:14 +0100 Fixed restoring a pagelemenent value. Diffstat:
M | modules/cms/action/pageelement/PageelementRestoreAction.class.php | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/cms/action/pageelement/PageelementRestoreAction.class.php b/modules/cms/action/pageelement/PageelementRestoreAction.class.php @@ -25,15 +25,14 @@ class PageelementRestoreAction extends PageelementAction implements Method { $this->ensureValueIdIsInAnyContent( $valueId ); $value = new Value(); - $value->valueid = $valueId; - $value->loadWithId( $value->valueid ); + $value->loadWithId( $valueId ); // Restore value. $value->valueid = null; $value->publish = false; $value->persist(); - $this->addNoticeFor( $this->template,Messages::PAGEELEMENT_USE_FROM_ARCHIVE ); + $this->addNoticeFor( $this->page,Messages::PAGEELEMENT_USE_FROM_ARCHIVE ); } }