From 2ce7e92d8153f000e661ea537a04a87ce781933b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 7 Mar 2024 17:32:57 +0100 Subject: [PATCH] Make magic method `__isset` respect additionalData properties Closes #5825 --- .../install/files/lib/data/category/Category.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index a759046224..5f8e15566d 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -97,6 +97,14 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I return $value; } + /** + * @inheritDoc + */ + public function __isset($name) + { + return parent::__isset($name) || isset($this->data['additionalData'][$name]); + } + /** * @inheritDoc */ -- 2.20.1