From: Matthias Schmidt Date: Mon, 28 Jan 2019 17:30:37 +0000 (+0100) Subject: Fix saving page with parent via PIP X-Git-Tag: 5.2.0_Alpha_1~340 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=187c0f6e1e7ea72c41831eb3637c88f633190f17;p=GitHub%2FWoltLab%2FWCF.git Fix saving page with parent via PIP See #2545 --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php index 1aa393f4a6..6759cc4263 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php @@ -748,6 +748,13 @@ class PagePackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin } $data['content'] = $content; + + if (isset($data['parent'])) { + $parent = $data['parent']; + unset($data['parent']); + + $data['parentPageID'] = Page::getPageByIdentifier($parent)->pageID; + } } return $data;