Skip to content

Commit

Permalink
Fix installer never baking up old tables (joomla#41942)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored Sep 27, 2023
1 parent 3df3943 commit 2f25021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion installation/src/Controller/InstallationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ public function create()
$r->view = 'setup';
$r->error = true;
} else {
if (!$databaseModel->handleOldDatabase($options)) {
// Re-fetch options from the session as the create database call might modify them.
$updatedOptions = $databaseModel->getOptions();

if (!$databaseModel->handleOldDatabase($updatedOptions)) {
$r->view = 'setup';
$r->error = true;
}
Expand Down

0 comments on commit 2f25021

Please sign in to comment.