Skip to content

Commit 5b87984

Browse files
authored
Merge pull request joomla#44304 from Bodge-IT/upmerges/2024-10-18
[6.0] Upmerges 2024-10-18
2 parents 69bb5a9 + 540546a commit 5b87984

File tree

172 files changed

+1653
-1096
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+1653
-1096
lines changed

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ steps:
408408
- rclone delete nightly:/home/devj/public_html/nightlies/ --include "Joomla_$MINORVERSION.*"
409409
- rclone delete nightly:/home/devj/public_html/cache/com_content/
410410
- rclone copy ./transfer/ nightly:/home/devj/public_html/nightlies/
411-
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla $MINORVERSION](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
411+
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla ${MINORVERSION}](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
412412

413413
- name: buildfailure
414414
image: joomlaprojects/docker-images:packager
@@ -417,7 +417,7 @@ steps:
417417
from_secret: mattermost_nightly_hook
418418
commands:
419419
- export MINORVERSION=${DRONE_BRANCH%-*}
420-
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla $MINORVERSION](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
420+
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla ${MINORVERSION}](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
421421
when:
422422
status:
423423
- failure
@@ -431,6 +431,6 @@ trigger:
431431

432432
---
433433
kind: signature
434-
hmac: 4651bf03bdeacfec868856dca94418b8999543e6bc05c3797e927734c878ea89
434+
hmac: 8587cef2227502ec33fa0434dadf0a3178d6fa7cbbfbe4e962b3c8784c3a2c6f
435435

436436
...

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ insert_final_newline = true
1515
indent_style = space
1616
indent_size = 4
1717

18-
[*.{js,json,scss,css,yml,vue}]
18+
[*.{mjs,js,json,scss,css,yml,vue}]
1919
indent_style = space
2020
indent_size = 2

administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-07-02.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.

administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-07-19.sql

Lines changed: 0 additions & 7 deletions
This file was deleted.

administrator/components/com_admin/sql/updates/mysql/5.2.0-2024-08-22.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-07-02.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.

administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-07-19.sql

Lines changed: 0 additions & 7 deletions
This file was deleted.

administrator/components/com_admin/sql/updates/postgresql/5.2.0-2024-08-22.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

administrator/components/com_categories/src/View/Categories/HtmlView.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,30 @@ public function display($tpl = null)
139139
}
140140
} else {
141141
// In article associations modal we need to remove language filter if forcing a language.
142-
if ($forcedLanguage = Factory::getApplication()->getInput()->get('forcedLanguage', '', 'CMD')) {
142+
$forcedLanguage = Factory::getApplication()->getInput()->get('forcedLanguage', '', 'CMD');
143+
144+
if ($forcedLanguage) {
143145
// If the language is forced we can't allow to select the language, so transform the language selector filter into a hidden field.
144146
$languageXml = new \SimpleXMLElement('<field name="language" type="hidden" default="' . $forcedLanguage . '" />');
145147
$this->filterForm->setField($languageXml, 'filter', true);
146148

147149
// Also, unset the active language filter so the search tools is not open by default with this filter.
148150
unset($this->activeFilters['language']);
149151
}
152+
153+
$this->filterForm->addControlField('forcedLanguage', $forcedLanguage);
150154
}
151155

152156
// If filter by category is active we need to know the extension name to filter the categories
153157
$extensionName = $this->escape($this->state->get('filter.extension'));
154158
$this->filterForm->setFieldAttribute('category_id', 'extension', $extensionName, 'filter');
155159

160+
// Add form control fields
161+
$this->filterForm
162+
->addControlField('extension', $this->state->get('filter.extension', ''))
163+
->addControlField('task', '')
164+
->addControlField('boxchecked', '0');
165+
156166
parent::display($tpl);
157167
}
158168

administrator/components/com_categories/src/View/Category/HtmlView.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,13 @@ public function display($tpl = null)
121121
$this->checkTags = true;
122122
}
123123

124-
Factory::getApplication()->getInput()->set('hidemainmenu', true);
124+
$input = Factory::getApplication()->getInput();
125+
$forcedLanguage = $input->get('forcedLanguage', '', 'cmd');
126+
127+
$input->set('hidemainmenu', true);
125128

126129
// If we are forcing a language in modal (used for associations).
127-
if ($this->getLayout() === 'modal' && $forcedLanguage = Factory::getApplication()->getInput()->get('forcedLanguage', '', 'cmd')) {
130+
if ($this->getLayout() === 'modal' && $forcedLanguage) {
128131
// Set the language field to the forcedLanguage and disable changing it.
129132
$this->form->setValue('language', null, $forcedLanguage);
130133
$this->form->setFieldAttribute('language', 'readonly', 'true');
@@ -136,6 +139,12 @@ public function display($tpl = null)
136139
$this->form->setFieldAttribute('tags', 'language', '*,' . $forcedLanguage);
137140
}
138141

142+
// Add form control fields
143+
$this->form
144+
->addControlField('task', '')
145+
->addControlField('return', $input->getBase64('return', ''))
146+
->addControlField('forcedLanguage', $forcedLanguage);
147+
139148
if ($this->getLayout() !== 'modal') {
140149
$this->addToolbar();
141150
} else {

0 commit comments

Comments
 (0)