diff --git a/administrator/components/com_admin/sql/updates/mysql/6.0.1-2025-10-29.sql b/administrator/components/com_admin/sql/updates/mysql/6.0.1-2025-10-29.sql new file mode 100644 index 0000000000000..677a4624912f5 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/6.0.1-2025-10-29.sql @@ -0,0 +1,14 @@ +UPDATE `#__menu` +SET `params` = JSON_SET(`params`, + JSON_UNQUOTE(JSON_SEARCH(`params`, 'one', ' ', NULL, '$.featured_categories[*]')), + '' + ) +WHERE JSON_VALID(`params`) = 1 + AND JSON_SEARCH(`params`, 'one', ' ', NULL, '$.featured_categories[*]') IS NOT NULL + AND `type` = 'component' + AND `link` = 'index.php?option=com_content&view=featured'; + +UPDATE `#__menu` +SET `link` = REPLACE(`link`, '&catid[0]= ', '&catid[0]=') +WHERE `type` = 'component' + AND `link` LIKE 'index.php?option=com_content&view=archive&catid[0]= %'; diff --git a/administrator/components/com_admin/sql/updates/postgresql/6.0.1-2025-10-29.sql b/administrator/components/com_admin/sql/updates/postgresql/6.0.1-2025-10-29.sql new file mode 100644 index 0000000000000..94952c7643e62 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/6.0.1-2025-10-29.sql @@ -0,0 +1,21 @@ +UPDATE "#__menu" +SET "params" = jsonb_set( + "params"::jsonb, + '{featured_categories}', + COALESCE( + ( + SELECT jsonb_agg(to_jsonb(CASE WHEN elem = ' ' THEN '' ELSE elem END)) + FROM jsonb_array_elements_text("params"::jsonb->'featured_categories') AS t(elem) + ), + '[]'::jsonb + ), + false +) +WHERE ("params"::jsonb->'featured_categories') @> '[" "]'::jsonb + AND "type" = 'component' + AND "link" = 'index.php?option=com_content&view=featured'; + +UPDATE "#__menu" +SET "link" = REPLACE("link", '&catid[0]= ', '&catid[0]=') +WHERE "type" = 'component' + AND "link" LIKE 'index.php?option=com_content&view=archive&catid[0]= %'; diff --git a/components/com_content/tmpl/archive/default.xml b/components/com_content/tmpl/archive/default.xml index 7e0fb8ececd38..9db86bab73dd4 100644 --- a/components/com_content/tmpl/archive/default.xml +++ b/components/com_content/tmpl/archive/default.xml @@ -19,9 +19,9 @@ extension="com_content" multiple="true" layout="joomla.form.field.list-fancy-select" - default=" " + default="" > - + diff --git a/components/com_content/tmpl/featured/default.xml b/components/com_content/tmpl/featured/default.xml index c102644d7517d..638ff14a591e9 100644 --- a/components/com_content/tmpl/featured/default.xml +++ b/components/com_content/tmpl/featured/default.xml @@ -19,10 +19,10 @@ extension="com_content" multiple="true" layout="joomla.form.field.list-fancy-select" - default=" " + default="" parentclass="stack span-3" > - +