From 7022c382b8498a4d618c5a06377b498b51dde6fb Mon Sep 17 00:00:00 2001 From: Harrys Ravalomanana Date: Tue, 12 May 2020 11:15:07 +0400 Subject: [PATCH] PHRAS-3066 #commetn fix 500 error on tools #time 2h --- lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php | 2 +- templates/web/prod/actions/Tools/index.html.twig | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php index 3b88e81237..fa3fbac84a 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php @@ -41,7 +41,7 @@ class ToolsController extends Controller $metadatas = false; $record = null; $recordAccessibleSubdefs = array(); - + $listsubdef= null; if (count($records) == 1) { /** @var \record_adapter $record */ $record = $records->first(); diff --git a/templates/web/prod/actions/Tools/index.html.twig b/templates/web/prod/actions/Tools/index.html.twig index aed57ce82f..60bee62d2d 100644 --- a/templates/web/prod/actions/Tools/index.html.twig +++ b/templates/web/prod/actions/Tools/index.html.twig @@ -197,9 +197,11 @@