From: Matthias Schmidt Date: Thu, 24 Jan 2019 17:24:07 +0000 (+0100) Subject: Fix exception when reading value of field without immutability support X-Git-Tag: 5.2.0_Alpha_1~349 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=91e200064f93a602044d279111567be74b2a365a;p=GitHub%2FWoltLab%2FWCF.git Fix exception when reading value of field without immutability support See #2509 See aa6f853584182980c1c7d12891b689317e458b8b --- diff --git a/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php b/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php index b581866e42..c9fa7b8fed 100644 --- a/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php @@ -1,6 +1,7 @@ readValues(); } - else if ($child instanceof IFormField && $child->isAvailable() && !$child->isImmutable()) { + else if ($child instanceof IFormField && $child->isAvailable() && (!($child instanceof IImmutableFormField) || !$child->isImmutable())) { $child->readValue(); } }