Ignore the `searchable`-flag if this is an acp request. ignore-searchable-flag-in-acp
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 17 Apr 2024 11:51:05 +0000 (13:51 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 17 Apr 2024 11:51:05 +0000 (13:51 +0200)
wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php

index c45c8053e43795217208e028a2293be4b90f6c3e..c0eeb1aa59e004fd36522b90284284e284fe8cb0 100644 (file)
@@ -317,7 +317,8 @@ class UserOptionHandler extends OptionHandler
         }
 
         // search mode
-        if ($this->searchMode && !$option->searchable) {
+        // Ignore searchable flag in ACP
+        if (!\class_exists('wcf\system\WCFACP', false) && $this->searchMode && !$option->searchable) {
             return false;
         }