joomlagerman / joomla

The J!German translation team provides German translation for Joomla!
https://www.jgerman.de
GNU General Public License v2.0
25 stars 46 forks source link

[5.2] Multilang: Remove restrictions for home language menu items #3248

Closed jgerman-bot closed 1 month ago

jgerman-bot commented 1 month ago

New language relevant PR in upstream repo: https://github.com/joomla/joomla-cms/pull/43862 Here are the upstream changes:

Click to expand the diff! ```diff diff --git a/administrator/components/com_languages/tmpl/multilangstatus/default.php b/administrator/components/com_languages/tmpl/multilangstatus/default.php index 58734a05f8965..8c11150253d8c 100644 --- a/administrator/components/com_languages/tmpl/multilangstatus/default.php +++ b/administrator/components/com_languages/tmpl/multilangstatus/default.php @@ -55,13 +55,6 @@ - defaultHome == true) : ?> -
- - - -
- statuses as $status) : ?> lang_code && $status->published == 1 && $status->home_published != 1) : ?> diff --git a/administrator/components/com_menus/presets/alternate.xml b/administrator/components/com_menus/presets/alternate.xml index ab129265fbe52..3f2a69d0b8d9f 100644 --- a/administrator/components/com_menus/presets/alternate.xml +++ b/administrator/components/com_menus/presets/alternate.xml @@ -225,11 +225,11 @@ type="separator" title="JSITE" hidden="false" - 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_select="a.id, a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE MAX(m.language) WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', MAX(l.lang_code)) END ELSE 'class:icon-home' 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.lang_code" + sql_group="a.id, a.title, a.menutype" sql_order="a.id DESC" >
zero-24 commented 1 month ago

PR; https://github.com/joomlagerman/joomla/pull/3249