Skip to content

Commit 5a62286

Browse files
committed
Merge remote-tracking branch 'upstream/5.3-dev' into upmerges/2024-10-18
2 parents 69bb5a9 + 2e5a93b commit 5a62286

File tree

167 files changed

+1654
-1064
lines changed

Some content is hidden

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

167 files changed

+1654
-1064
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `#__fields` MODIFY `fieldparams` MEDIUMTEXT NOT NULL;

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 {

administrator/components/com_categories/tmpl/categories/default.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,7 @@
282282
<?php endif; ?>
283283
<?php endif; ?>
284284

285-
<input type="hidden" name="extension" value="<?php echo $extension; ?>">
286-
<input type="hidden" name="task" value="">
287-
<input type="hidden" name="boxchecked" value="0">
288-
<?php echo HTMLHelper::_('form.token'); ?>
285+
<?php echo $this->filterForm->renderControlFields(); ?>
289286
</div>
290287
</div>
291288
</div>

administrator/components/com_categories/tmpl/categories/modal.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,7 @@
143143

144144
<?php endif; ?>
145145

146-
<input type="hidden" name="extension" value="<?php echo $extension; ?>">
147-
<input type="hidden" name="task" value="">
148-
<input type="hidden" name="boxchecked" value="0">
149-
<input type="hidden" name="forcedLanguage" value="<?php echo $app->getInput()->get('forcedLanguage', '', 'CMD'); ?>">
150-
<?php echo HTMLHelper::_('form.token'); ?>
146+
<?php echo $this->filterForm->renderControlFields(); ?>
151147

152148
</form>
153149
</div>

administrator/components/com_categories/tmpl/category/edit.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@
123123
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
124124

125125
<?php echo $this->form->getInput('extension'); ?>
126-
<input type="hidden" name="task" value="">
127-
<input type="hidden" name="return" value="<?php echo $input->getBase64('return'); ?>">
128-
<input type="hidden" name="forcedLanguage" value="<?php echo $input->get('forcedLanguage', '', 'cmd'); ?>">
129-
<?php echo HTMLHelper::_('form.token'); ?>
126+
<?php echo $this->form->renderControlFields(); ?>
130127
</div>
131128
</form>

administrator/components/com_config/src/Model/ApplicationModel.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,8 @@ public function sendTestMail()
12151215
'method' => Text::_('COM_CONFIG_SENDMAIL_METHOD_' . strtoupper($mail->Mailer)),
12161216
]
12171217
);
1218-
$mailer->addRecipient($app->get('mailfrom'), $app->get('fromname'));
1218+
$mailer->addRecipient($user->email, $user->name);
1219+
12191220

12201221
try {
12211222
$mailSent = $mailer->send();
@@ -1230,9 +1231,9 @@ public function sendTestMail()
12301231

12311232
// If JMail send the mail using PHP Mail as fallback.
12321233
if ($mail->Mailer !== $app->get('mailer')) {
1233-
$app->enqueueMessage(Text::sprintf('COM_CONFIG_SENDMAIL_SUCCESS_FALLBACK', $app->get('mailfrom'), $methodName), 'warning');
1234+
$app->enqueueMessage(Text::sprintf('COM_CONFIG_SENDMAIL_SUCCESS_FALLBACK', $user->email, $methodName), 'warning');
12341235
} else {
1235-
$app->enqueueMessage(Text::sprintf('COM_CONFIG_SENDMAIL_SUCCESS', $app->get('mailfrom'), $methodName), 'message');
1236+
$app->enqueueMessage(Text::sprintf('COM_CONFIG_SENDMAIL_SUCCESS', $user->email, $methodName), 'message');
12361237
}
12371238

12381239
return true;

administrator/components/com_content/src/View/Article/HtmlView.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,11 @@ public function display($tpl = null)
117117
throw new GenericDataException(implode("\n", $errors), 500);
118118
}
119119

120+
$input = Factory::getApplication()->getInput();
121+
$forcedLanguage = $input->get('forcedLanguage', '', 'cmd');
122+
120123
// If we are forcing a language in modal (used for associations).
121-
if ($this->getLayout() === 'modal' && $forcedLanguage = Factory::getApplication()->getInput()->get('forcedLanguage', '', 'cmd')) {
124+
if ($this->getLayout() === 'modal' && $forcedLanguage) {
122125
// Set the language field to the forcedLanguage and disable changing it.
123126
$this->form->setValue('language', null, $forcedLanguage);
124127
$this->form->setFieldAttribute('language', 'readonly', 'true');
@@ -130,6 +133,12 @@ public function display($tpl = null)
130133
$this->form->setFieldAttribute('tags', 'language', '*,' . $forcedLanguage);
131134
}
132135

136+
// Add form control fields
137+
$this->form
138+
->addControlField('task', '')
139+
->addControlField('return', $input->getBase64('return', ''))
140+
->addControlField('forcedLanguage', $forcedLanguage);
141+
133142
if ($this->getLayout() !== 'modal') {
134143
$this->addToolbar();
135144
} else {

0 commit comments

Comments
 (0)