mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-27 07:33:41 +00:00
[4.0][admin menu] - fix wrong group by in preset menu (#25938)
* fix wrong group by * fix wrong group by * fix wrong group by * lang_code * lang_code * lang_code
This commit is contained in:
parent
a990c239eb
commit
0df712246f
|
@ -134,11 +134,11 @@
|
|||
type="separator"
|
||||
title="JSITE"
|
||||
hidden="false"
|
||||
sql_select="a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon"
|
||||
sql_select="a.id, a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon"
|
||||
sql_from="#__menu_types AS a"
|
||||
sql_where="a.client_id = 0"
|
||||
sql_leftjoin="#__menu AS m ON m.menutype = a.menutype AND m.home = 1 LEFT JOIN #__languages AS l ON l.lang_code = m.language"
|
||||
sql_group="a.id, a.title, a.menutype, m.language, l.image"
|
||||
sql_group="a.id, a.title, a.menutype, m.language, l.lang_code"
|
||||
sql_order="a.id DESC"
|
||||
>
|
||||
<menuitem
|
||||
|
|
|
@ -36,11 +36,11 @@
|
|||
title="JSITE"
|
||||
icon="desktop"
|
||||
hidden="false"
|
||||
sql_select="a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon"
|
||||
sql_select="a.id, a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon"
|
||||
sql_from="#__menu_types AS a"
|
||||
sql_where="a.client_id = 0"
|
||||
sql_leftjoin="#__menu AS m ON m.menutype = a.menutype AND m.home = 1 LEFT JOIN #__languages AS l ON l.lang_code = m.language"
|
||||
sql_group="a.id, a.title, a.menutype, m.language, l.image"
|
||||
sql_group="a.id, a.title, a.menutype, m.language, l.lang_code"
|
||||
sql_order="a.id DESC"
|
||||
sql_target="self"
|
||||
>
|
||||
|
|
|
@ -191,11 +191,11 @@
|
|||
type="separator"
|
||||
title="JSITE"
|
||||
hidden="false"
|
||||
sql_select="a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon"
|
||||
sql_select="a.id, a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon"
|
||||
sql_from="#__menu_types AS a"
|
||||
sql_where="a.client_id = 0"
|
||||
sql_leftjoin="#__menu AS m ON m.menutype = a.menutype AND m.home = 1 LEFT JOIN #__languages AS l ON l.lang_code = m.language"
|
||||
sql_group="a.id, a.title, a.menutype, m.language, l.image"
|
||||
sql_group="a.id, a.title, a.menutype, m.language, l.lang_code"
|
||||
sql_order="a.id DESC">
|
||||
<menuitem
|
||||
title="{sql:title} "
|
||||
|
|
Loading…
Reference in New Issue
Block a user