Skip to content
Snippets Groups Projects
Commit 6554a229 authored by Nia Kathoni's avatar Nia Kathoni Committed by Wade Stewart
Browse files

Issue #3366359 by nikathone, themodularlab: After installing: error on edit...

Issue #3366359 by nikathone, themodularlab: After installing: error on edit and save changes to the menu
parent 9a6f4d22
No related branches found
No related tags found
1 merge request!74Issue #3366359 by nikathone, themodularlab: After installing: error on edit...
......@@ -178,7 +178,7 @@ class MegaMenuConfig extends ConfigEntityBase implements MegaMenuConfigInterface
if (is_string($caption)) {
$config[$key]['item_config']['caption'] = Xss::filter($caption);
}
elseif (is_array($caption)) {
elseif (is_array($caption) && !empty($caption['#plain_text'])) {
$config[$key]['item_config']['caption'] = Xss::filter($caption['#plain_text']);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment