Skip to content
Snippets Groups Projects
Commit 856ddb24 authored by Wade Stewart's avatar 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 a989b8d8
No related branches found
No related tags found
1 merge request!73Issue #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