From 9daf3c42ad838b29350dde67950a173a416a2a7e Mon Sep 17 00:00:00 2001 From: Sonny Le Date: Wed, 10 Apr 2024 16:05:52 +0700 Subject: [PATCH] Fix issue Menu Assignment selected #633 --- framework/library/astroid/Element/BaseElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/library/astroid/Element/BaseElement.php b/framework/library/astroid/Element/BaseElement.php index 6ab4188b..ecb92a1f 100644 --- a/framework/library/astroid/Element/BaseElement.php +++ b/framework/library/astroid/Element/BaseElement.php @@ -69,7 +69,7 @@ protected function wrap() $assignment = $this->params->get('assignment', ""); if ($assignment_type == 2 && $assignment) { $assignment = \json_decode($assignment, true); - if (isset($assignment[$menuId]) && !$assignment[$menuId]) { + if ((isset($assignment[$menuId]) && !$assignment[$menuId]) || !isset($assignment[$menuId])) { return ''; } }