Skip to content

Commit

Permalink
Merge pull request #13 from joomla/4.4-dev
Browse files Browse the repository at this point in the history
merge head repository
  • Loading branch information
muhme authored Aug 23, 2024
2 parents 9b0f6c1 + 129bd28 commit c3e6f8d
Show file tree
Hide file tree
Showing 31 changed files with 274 additions and 141 deletions.
9 changes: 9 additions & 0 deletions administrator/components/com_users/src/Model/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,15 @@ public function save($data)
}
}

// Unset the username if it should not be overwritten
if (
!$my->authorise('core.manage', 'com_users')
&& (int) $user->id === (int) $my->id
&& !ComponentHelper::getParams('com_users')->get('change_login_name')
) {
unset($data['username']);
}

// Bind the data.
if (!$user->bind($data)) {
$this->setError($user->getError());
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<extension client="administrator" type="language" method="upgrade">
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<metafile client="administrator">
<name>English (en-GB)</name>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/manifests/files/joomla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<authorUrl>www.joomla.org</authorUrl>
<copyright>(C) 2019 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>4.4.7-dev</version>
<creationDate>2024-07</creationDate>
<version>4.4.9-dev</version>
<creationDate>2024-08</creationDate>
<description>FILES_JOOMLA_XML_DESCRIPTION</description>

<scriptfile>administrator/components/com_admin/script.php</scriptfile>
Expand Down
4 changes: 2 additions & 2 deletions administrator/manifests/packages/pkg_en-GB.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<extension type="package" method="upgrade">
<name>English (en-GB) Language Pack</name>
<packagename>en-GB</packagename>
<version>4.4.7.1</version>
<creationDate>2024-07</creationDate>
<version>4.4.9.1</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions api/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<extension client="api" type="language" method="upgrade">
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions api/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<metafile client="api">
<name>English (en-GB)</name>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
17 changes: 17 additions & 0 deletions build/media_source/templates/administrator/atum/js/template.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,20 @@ window.addEventListener('joomla:menu-toggle', (event) => {
changeLogo(event.detail);
}
});

/**
* Close any open data-bs-toggle="collapse" when opening a data-bs-toggle="dropdown"
*
* @since 4.4
*/
document.querySelectorAll('[data-bs-toggle="dropdown"]').forEach((button) => {
button.addEventListener('click', () => {
document.querySelectorAll('[data-bs-toggle="collapse"]').forEach((cb) => {
const target = document.querySelector(cb.getAttribute('data-bs-target'));
const collapseMenu = bootstrap.Collapse.getInstance(target) || new bootstrap.Collapse(target, {
toggle: false,
});
collapseMenu.hide();
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@
.fas {
font-size: 1.5rem;
}

> * {
pointer-events: none;
}
}

.container-search {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
&.btn {
padding-inline-end: 0;
}

> * {
pointer-events: none;
}
}

.btn-group:not(:last-child) > .dropdown-toggle-split {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ private function _sendEmail($data, $contact, $emailCopyToSender)
$mailer->addRecipient($contact->email_to);
$mailer->setReplyTo($templateData['email'], $templateData['name']);
$mailer->addTemplateData($templateData);
$mailer->addUnsafeTags(['name', 'email', 'body', 'customfields']);
$sent = $mailer->send();

// If we are supposed to copy the sender, do so.
Expand Down
3 changes: 3 additions & 0 deletions components/com_content/src/View/Archive/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class HtmlView extends BaseHtmlView
*/
public function display($tpl = null)
{
$app = Factory::getApplication();
$user = $this->getCurrentUser();
$state = $this->get('State');
$items = $this->get('Items');
Expand Down Expand Up @@ -219,6 +220,8 @@ public function display($tpl = null)
$this->pagination = &$pagination;
$this->pagination->setAdditionalUrlParam('month', $state->get('filter.month'));
$this->pagination->setAdditionalUrlParam('year', $state->get('filter.year'));
$this->pagination->setAdditionalUrlParam('filter-search', $state->get('list.filter'));
$this->pagination->setAdditionalUrlParam('catid', $app->input->get('catid', [], 'array'));

$this->_prepareDocument();

Expand Down
22 changes: 22 additions & 0 deletions components/com_finder/src/View/Search/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,28 @@ public function display($tpl = null)
// Flag indicates to not add limitstart=0 to URL
$this->pagination->hideEmptyLimitstart = true;

// Add additional parameters
$queryParameterList = [
'f' => 'int',
't' => 'array',
'q' => 'string',
'l' => 'cmd',
'd1' => 'string',
'd2' => 'string',
'w1' => 'string',
'w2' => 'string',
];

foreach ($queryParameterList as $parameter => $filter) {
$value = $app->input->get($parameter, null, $filter);

if (is_null($value)) {
continue;
}

$this->pagination->setAdditionalUrlParam($parameter, $value);
}

// Check for errors.
if (count($errors = $this->get('Errors'))) {
throw new GenericDataException(implode("\n", $errors), 500);
Expand Down
1 change: 1 addition & 0 deletions components/com_users/src/Model/RegistrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ public function register($temp)
$mailer = new MailTemplate($mailtemplate, $app->getLanguage()->getTag());
$mailer->addTemplateData($data);
$mailer->addRecipient($data['email']);
$mailer->addUnsafeTags(['username', 'password_clear', 'name']);
$return = $mailer->send();
} catch (\Exception $exception) {
try {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"joomla/database": "^2.1.1",
"joomla/di": "^2.0.1",
"joomla/event": "^2.0.2",
"joomla/filter": "^2.0.4",
"joomla/filter": "^2.0.5",
"joomla/filesystem": "^2.0.2",
"joomla/http": "^2.0.4",
"joomla/input": "^2.0.4",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions installation/language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<metafile client="installation">
<name>English (United Kingdom)</name>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<copyright>(C) 2005 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
Expand Down
4 changes: 2 additions & 2 deletions language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<extension client="site" type="language" method="upgrade">
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions language/en-GB/langmetadata.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<metafile client="site">
<name>English (en-GB)</name>
<version>4.4.7</version>
<creationDate>2024-07</creationDate>
<version>4.4.9</version>
<creationDate>2024-08</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
!empty($pattern) ? 'pattern="' . $pattern . '"' : '',

// @TODO add a proper string here!!!
!empty($validationtext) ? 'data-validation-text="' . $validationtext . '"' : '',
!empty($validationtext) ? 'data-validation-text="' . $this->escape(Text::_($validationtext)) . '"' : '',
];

$addonBeforeHtml = '<span class="input-group-text">' . Text::_($addonBefore) . '</span>';
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ public static function makeId()
'view' => 'WORD',
'layout' => 'WORD',
'tpl' => 'CMD',
'id' => 'INT',
'id' => 'STRING',
];

// Use platform defaults if parameter doesn't already exist.
Expand Down
Loading

0 comments on commit c3e6f8d

Please sign in to comment.