From ade884db436734501afcaa1fa85cdff5419f50d3 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 15 Oct 2018 18:54:05 +0200 Subject: [PATCH] Fix aliases validation when using smiley PIP GUI See #2545 --- .../package/plugin/SmileyPackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php index 551c0210f7..3d0a968b33 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php @@ -169,7 +169,7 @@ class SmileyPackageInstallationPlugin extends AbstractXMLPackageInstallationPlug if ( $formField->getDocument()->getFormMode() === IFormDocument::FORM_MODE_CREATE || - $this->editedEntry->getAttribute('aliases') !== $formField->getSaveValue() + $this->editedEntry->getElementsByTagName('aliases')->item(0)->nodeValue !== $formField->getSaveValue() ) { $notUniqueCodes = []; foreach ($formField->getValue() as $alias) { -- 2.20.1