Component has submenu item with filter option:
<submenu>
<menu link="option=com_plugins&view=plugins&filter[search]=search"
view="plugins" img="class:plugin" alt="Plugins">com_component_plugins</menu>
</submenu>
Error notice in admin panel:
Notice: Array to string conversion in /var/www/js/administrator/modules/mod_menu/menu.php on line 613
Joomla 3.7.3
Labels |
Added:
?
|
Category | ⇒ | com_menus |
php 5.5.9
if $link = "index.php?option=com_plugins&view=plugins&filter[search]=search";
$uri->getQuery(true);
will return
array (
'option' => 'com_plugins',
'view' => 'plugins',
'filter' =>
array (
'search' => 'search',
),
)
The issue is in administrator/modules/mod_menu/menu.php on line 610
$parts[] = str_replace(array('.', '_'), '-', $value);
Try to replace it with
if (!is_array($value))
{
$parts[] = str_replace(array('.', '_'), '-', $value);
}
else
{
foreach ($value as $k => $v)
{
$parts[] = $k.'-'.str_replace(array('.', '_'), '-', $v);
}
}
Status | New | ⇒ | Information Required |
@VampiRUS have you tried above Suggestion?
@franz-wohlkoenig yes it helps
@franz-wohlkoenig this is issue in joomla code, i think it must be fixed there.
@maintainers any Opinion?
@franz-wohlkoenig just FYI you can't tag @maintainers
you just tag this org: https://github.com/maintainers ;)
Regarding the topic what about doing the suggested code changes as PR so we can test and merge the fix?
I don't remember what the permissions are on GitHub but you can try pinging @joomla/cms-maintainers
IMO you need to be part of that team or owner to be allowed to ping the team ;)
I don't remember what the permissions are on who can ping teams or who is in what team off the top of my head. If the feature works for him then cool, if not, well, blame GitHub
pinging https://github.com/maintainers & @joomla/cms-maintainers
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-23 06:44:21 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_Date | 2017-10-23 06:44:21 | ⇒ | 2017-10-23 06:44:22 |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
closed as stated above.
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17128
Please tell us the exact PHP Version. As
$parts
should be an array and impode is constructed to move arrays to strings. I'm a bit confused.