diff --git a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php index 8dc57a8cb8..cd22dc8740 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php @@ -68,7 +68,7 @@ class ToolsController extends Controller continue; } $label = $this->app->trans('prod::tools: document'); - } elseif (isset($databoxSubdefs[$subdefName])) { + } elseif ($databoxSubdefs->hasSubdef($subdefName)) { if (!$acl->has_access_to_subdef($record, $subdefName)) { continue; }