Skip to content

Commit e79cf0f

Browse files
authored
Merge pull request #45845 from muhme/5.4-upmerge-2025-08-05
[5.4] upmerge 2025-08-05
2 parents ce9161c + 1cc9ff2 commit e79cf0f

File tree

9 files changed

+39
-8
lines changed

9 files changed

+39
-8
lines changed

build/media_source/templates/administrator/atum/scss/_variables-dark.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ $atum-colors-dark: (
284284
btn-secondary-bg: $info-dark,
285285
btn-secondary-border: 1px solid color.adjust($info-dark, $lightness: 10%),
286286
btn-secondary-bg-hvr: color.adjust($info-dark, $lightness: -10%),
287+
btn-secondary-color-hvr: var(--template-text-light),
287288
btn-secondary-border-hvr: 1px solid color.adjust($info-dark, $lightness: 10%),
288289

289290
btn-dark-border: 1px solid rgba(0,0,0,.85),

build/media_source/templates/administrator/atum/scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ $atum-colors: (
339339
btn-secondary-bg: var(--template-bg-dark-60),
340340
btn-secondary-border: 1px solid var(--template-bg-dark-60),
341341
btn-secondary-color: var(--template-text-light),
342+
btn-secondary-bg-hvr: var(--template-bg-dark-70),
343+
btn-secondary-color-hvr: var(--template-text-light),
342344

343345
btn-info-color: var(--template-text-light),
344346
btn-info-bg: $info,

build/media_source/templates/administrator/atum/scss/vendor/bootstrap/_buttons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
border: var(--btn-secondary-border);
5555

5656
&:hover {
57-
color: var(--btn-secondary-color-hvr);
58-
background: var(--btn-secondary-bg-hvr);
57+
color: var(--btn-secondary-color-hvr, var(--btn-secondary-color));
58+
background: var(--btn-secondary-bg-hvr, var(--template-bg-dark-70));
5959
}
6060
}
6161

libraries/src/Dispatcher/ComponentDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function getController(string $name, string $client = '', array $config =
171171

172172
// Check if the controller could be created
173173
if (!$controller) {
174-
throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $name));
174+
throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $name), 404);
175175
}
176176

177177
return $controller;

libraries/src/Versioning/VersionableModelTrait.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ public function loadHistory($versionId, Table $table)
7979
$table->load($rowArray[$key]);
8080
}
8181

82+
// Fix null ordering when restoring history
83+
if (\array_key_exists('ordering', $rowArray) && $rowArray['ordering'] === null) {
84+
$rowArray['ordering'] = 0;
85+
}
86+
8287
return $table->bind($rowArray);
8388
}
8489
}

libraries/src/Versioning/Versioning.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ public static function store($typeAlias, $id, $data, $note = '')
123123
Factory::getApplication()->getDispatcher()->dispatch('onContentVersioningPrepareTable', $event);
124124
}
125125

126+
// Fix for null ordering - set to 0 if null
127+
if (\is_object($data)) {
128+
if (property_exists($data, 'ordering') && $data->ordering === null) {
129+
$data->ordering = 0;
130+
}
131+
} elseif (\is_array($data)) {
132+
if (\array_key_exists('ordering', $data) && $data['ordering'] === null) {
133+
$data['ordering'] = 0;
134+
}
135+
}
136+
126137
$historyTable->version_data = json_encode($data);
127138
$historyTable->version_note = $note;
128139

plugins/system/debug/src/Extension/Debug.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,12 @@ public function onAfterRespond(AfterRespondEvent|ApplicationEvent $event): void
344344
}
345345

346346
$debugBarRenderer = new JavascriptRenderer($this->debugBar, Uri::root(true) . '/media/vendor/debugbar/');
347-
$openHandlerUrl = Uri::base(true) . '/index.php?option=com_ajax&plugin=debug&group=system&format=raw&action=openhandler';
348-
$openHandlerUrl .= '&' . ($formToken ?? Session::getFormToken()) . '=1';
349-
350-
$debugBarRenderer->setOpenHandlerUrl($openHandlerUrl);
351347

348+
if ($this->params->get('track_request_history', false)) {
349+
$openHandlerUrl = Uri::base(true) . '/index.php?option=com_ajax&plugin=debug&group=system&format=raw&action=openhandler';
350+
$openHandlerUrl .= '&' . ($formToken ?? Session::getFormToken()) . '=1';
351+
$debugBarRenderer->setOpenHandlerUrl($openHandlerUrl);
352+
}
352353
/**
353354
* @todo disable highlightjs from the DebugBar, import it through NPM
354355
* and deliver it through Joomla's API

plugins/system/languagefilter/src/Extension/LanguageFilter.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,17 @@ public function onUserLogin(LoginEvent $event): void
699699
$app->setUserState('users.login.form.return', 'index.php?Itemid=' . $associationItemid);
700700
$foundAssociation = true;
701701
}
702+
} elseif ($this->mode_sef) {
703+
if ($app->getUserState('users.login.form.return')) {
704+
$app->setUserState(
705+
'users.login.form.return',
706+
Route::_(
707+
$app->getUserState('users.login.form.return'),
708+
false
709+
)
710+
);
711+
$foundAssociation = true;
712+
}
702713
} elseif (isset($associations[$lang_code]) && $menu->getItem($associations[$lang_code])) {
703714
/**
704715
* The login form does not contain a menu item redirection.

tests/System/integration/site/components/com_config/Templates.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('Test in frontend that the config config view', () => {
1+
describe('Test in frontend that the config templates view', () => {
22
beforeEach(() => cy.doFrontendLogin());
33

44
it('can edit template settings without menu item', () => {

0 commit comments

Comments
 (0)