Skip to content

Commit a76b798

Browse files
authored
Merge branch '5.3-dev' into deps
2 parents 9a8b18e + 0d93740 commit a76b798

File tree

9 files changed

+28
-12
lines changed

9 files changed

+28
-12
lines changed

administrator/components/com_templates/src/View/Style/JsonView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function display($tpl = null)
6969
return false;
7070
}
7171

72-
$paramsList = (array) $this->item;
72+
$paramsList = get_object_vars($this->item);
7373

7474
unset($paramsList['xml']);
7575

administrator/components/com_users/src/Model/UserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function save($data)
292292
}
293293

294294
// Destroy all active sessions for the user after changing the password or blocking him
295-
if ($data['password2'] || $data['block']) {
295+
if (!empty($data['password2']) || $data['block']) {
296296
UserHelper::destroyUserSessions($user->id, true);
297297
}
298298

build/build-modules-js/init/minify-vendor.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const RootPath = process.cwd();
99
const folders = [
1010
'media/vendor/accessibility/js',
1111
'media/vendor/chosen/js',
12-
'media/vendor/codemirror',
1312
'media/vendor/debugbar',
1413
'media/vendor/diff/js',
1514
'media/vendor/es-module-shims/js',

language/en-GB/com_contact.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COM_CONTACT_EMAIL_FORM="Contact Form"
2929
COM_CONTACT_EMAIL_LABEL="Email"
3030
COM_CONTACT_EMAIL_THANKS="Thank you for your email."
3131
COM_CONTACT_ENQUIRY_SUBJECT="{SITENAME}: {SUBJECT}"
32-
COM_CONTACT_ENQUIRY_TEXT="This is an enquiry email via {URL} from:\n{NAME} <{EMAIL}>\n\n{BODY}\n\n{CUSTOMFIELDS}"
32+
COM_CONTACT_ENQUIRY_TEXT="This is an enquiry email via {URL} from:\n{NAME} {EMAIL}\n\n{BODY}\n\n{CUSTOMFIELDS}"
3333
COM_CONTACT_ERROR_CONTACT_NOT_FOUND="Contact not found"
3434
COM_CONTACT_ERROR_UNIQUE_ALIAS="Another Contact in this category has the same alias."
3535
COM_CONTACT_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Contact in this category has the same alias."

plugins/actionlog/joomla/src/Extension/Joomla.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ public function onContentAfterSave(Model\AfterSaveEvent $event): void
183183
$messageLanguageKey = $defaultLanguageKey;
184184
}
185185

186-
$id = empty($params->id_holder) ? 0 : $article->get($params->id_holder);
186+
$id = empty($params->id_holder) ? 0 : $article->{$params->id_holder};
187187

188188
$message = [
189189
'action' => $isNew ? 'add' : 'update',
190190
'type' => $params->text_prefix . '_TYPE_' . $params->type_title,
191191
'id' => $id,
192-
'title' => $article->get($params->title_holder),
192+
'title' => $article->{$params->title_holder} ?? '',
193193
'itemlink' => ActionlogsHelper::getContentTypeLink($option, $contentType, $id, $params->id_holder, $article),
194194
];
195195

@@ -231,13 +231,13 @@ public function onContentAfterDelete(Model\AfterDeleteEvent $event): void
231231
$messageLanguageKey = 'PLG_SYSTEM_ACTIONLOGS_CONTENT_DELETED';
232232
}
233233

234-
$id = empty($params->id_holder) ? 0 : $article->get($params->id_holder);
234+
$id = empty($params->id_holder) ? 0 : $article->{$params->id_holder};
235235

236236
$message = [
237237
'action' => 'delete',
238238
'type' => $params->text_prefix . '_TYPE_' . $params->type_title,
239239
'id' => $id,
240-
'title' => $article->get($params->title_holder),
240+
'title' => $article->{$params->title_holder} ?? '',
241241
];
242242

243243
$this->addLog([$message], $messageLanguageKey, $context);

plugins/filesystem/local/src/Adapter/LocalAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,10 @@ private function copyFile(string $sourcePath, string $destinationPath, bool $for
531531
$destinationPath .= '/' . $this->getFileName($sourcePath);
532532
}
533533

534+
if (!MediaHelper::checkFileExtension(pathinfo($destinationPath, PATHINFO_EXTENSION))) {
535+
throw new \Exception(Text::_('COM_MEDIA_MOVE_FILE_EXTENSION_INVALID'));
536+
}
537+
534538
if (file_exists($destinationPath) && !$force) {
535539
throw new \Exception(Text::_('COM_MEDIA_COPY_FILE_NOT_POSSIBLE_FILE_ALREADY_EXISTS'));
536540
}

tests/System/integration/api/com_banners/Categories.cy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ describe('Test that banners categories API endpoint', () => {
1717
});
1818

1919
it('can create a category', () => {
20-
cy.api_post('/banners/categories', { title: 'automated test banner category', description: 'automated test banner category description' })
20+
cy.api_post('/banners/categories', {
21+
title: 'automated test banner category',
22+
description: 'automated test banner category description',
23+
parent_id: 1,
24+
extension: 'com_banners',
25+
})
2126
.then((response) => {
2227
cy.wrap(response).its('body').its('data').its('attributes')
2328
.its('title')

tests/System/integration/api/com_contact/Contacts.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('Test that contacts API endpoint', () => {
6262
cy.wrap(mails[0].receivers).should('have.property', Cypress.env('email'));
6363
cy.wrap(mails[0].headers.subject).should('equal', `${Cypress.env('sitename')}: automated test subject`);
6464
cy.wrap(mails[0].body).should('have.string', 'This is an enquiry email via');
65-
cy.wrap(mails[0].body).should('have.string', `${Cypress.env('name')} <${Cypress.env('email')}>`);
65+
cy.wrap(mails[0].body).should('have.string', `${Cypress.env('name')} ${Cypress.env('email')}`);
6666
cy.wrap(mails[0].body).should('have.string', 'automated test message');
6767
});
6868
});

tests/System/integration/api/com_content/Categories.cy.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ describe('Test that content categories API endpoint', () => {
1717
});
1818

1919
it('can create a category', () => {
20-
cy.api_post('/content/categories', { title: 'automated test content category', description: 'automated test content category description' })
20+
cy.api_post('/content/categories', {
21+
title: 'automated test content category',
22+
description: 'automated test content category description',
23+
parent_id: 1,
24+
extension: 'com_content',
25+
})
2126
.then((response) => {
2227
cy.wrap(response).its('body').its('data').its('attributes')
2328
.its('title')
@@ -30,7 +35,10 @@ describe('Test that content categories API endpoint', () => {
3035

3136
it('can update a category', () => {
3237
cy.db_createCategory({ title: 'automated test content category', extension: 'com_content' })
33-
.then((id) => cy.api_patch(`/content/categories/${id}`, { title: 'updated automated test content category', description: 'automated test content category description' }))
38+
.then((id) => cy.api_patch(`/content/categories/${id}`, {
39+
title: 'updated automated test content category',
40+
description: 'automated test content category description',
41+
}))
3442
.then((response) => {
3543
cy.wrap(response).its('body').its('data').its('attributes')
3644
.its('title')

0 commit comments

Comments
 (0)