Skip to content

Commit 1ad7f2c

Browse files
committed
Merge branch 'upmerges/2025-11-11' of https://github.com/Bodge-IT/joomla-cms into upmerges/2025-11-11
2 parents 16ed046 + 15c11f3 commit 1ad7f2c

File tree

4 files changed

+39
-4
lines changed

4 files changed

+39
-4
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
UPDATE `#__menu`
2+
SET `params` = JSON_SET(`params`,
3+
JSON_UNQUOTE(JSON_SEARCH(`params`, 'one', ' ', NULL, '$.featured_categories[*]')),
4+
''
5+
)
6+
WHERE JSON_VALID(`params`) = 1
7+
AND JSON_SEARCH(`params`, 'one', ' ', NULL, '$.featured_categories[*]') IS NOT NULL
8+
AND `type` = 'component'
9+
AND `link` = 'index.php?option=com_content&view=featured';
10+
11+
UPDATE `#__menu`
12+
SET `link` = REPLACE(`link`, '&catid[0]= ', '&catid[0]=')
13+
WHERE `type` = 'component'
14+
AND `link` LIKE 'index.php?option=com_content&view=archive&catid[0]= %';
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
UPDATE "#__menu"
2+
SET "params" = jsonb_set(
3+
"params"::jsonb,
4+
'{featured_categories}',
5+
COALESCE(
6+
(
7+
SELECT jsonb_agg(to_jsonb(CASE WHEN elem = ' ' THEN '' ELSE elem END))
8+
FROM jsonb_array_elements_text("params"::jsonb->'featured_categories') AS t(elem)
9+
),
10+
'[]'::jsonb
11+
),
12+
false
13+
)
14+
WHERE ("params"::jsonb->'featured_categories') @> '[" "]'::jsonb
15+
AND "type" = 'component'
16+
AND "link" = 'index.php?option=com_content&view=featured';
17+
18+
UPDATE "#__menu"
19+
SET "link" = REPLACE("link", '&catid[0]= ', '&catid[0]=')
20+
WHERE "type" = 'component'
21+
AND "link" LIKE 'index.php?option=com_content&view=archive&catid[0]= %';

components/com_content/tmpl/archive/default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
extension="com_content"
2020
multiple="true"
2121
layout="joomla.form.field.list-fancy-select"
22-
default=" "
22+
default=""
2323
>
24-
<option value=" ">JOPTION_ALL_CATEGORIES</option>
24+
<option value="">JOPTION_ALL_CATEGORIES</option>
2525
</field>
2626
</fieldset>
2727
</fields>

components/com_content/tmpl/featured/default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
extension="com_content"
2020
multiple="true"
2121
layout="joomla.form.field.list-fancy-select"
22-
default=" "
22+
default=""
2323
parentclass="stack span-3"
2424
>
25-
<option value=" ">JOPTION_ALL_CATEGORIES</option>
25+
<option value="">JOPTION_ALL_CATEGORIES</option>
2626
</field>
2727

2828
<field

0 commit comments

Comments
 (0)