Fix aliases validation when using smiley PIP GUI
authorMatthias Schmidt <gravatronics@live.com>
Mon, 15 Oct 2018 16:54:05 +0000 (18:54 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 15 Oct 2018 16:54:05 +0000 (18:54 +0200)
See #2545

wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php

index 551c0210f750b4f4c294266454bce6d5cee5c7e7..3d0a968b332837492fd6505e0cf5c5c59f8573fa 100644 (file)
@@ -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) {