Skip to content

Commit

Permalink
Finish remaining small issues for progress in install
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Nov 21, 2024
1 parent ed9c4e8 commit ddbaf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/glpi_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
if (json.started_at) {
if (json.finished_at) {
// Finished, nothing else to do!
updateProgress(single_message_element, progress_element, 1, 1);
updateProgress(single_message_element, progress_element, 1, 1, json.data);
return;
}

Expand Down
4 changes: 3 additions & 1 deletion src/Toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ public static function createSchema($lang = 'en_GB', ?DBmysql $database = null,
foreach ($tables as $data) {
$number_of_queries += \count($data);
}
$number_of_queries += 7; // For other calls :)
$number_of_queries += 8; // For other calls
if (defined('GLPI_SYSTEM_CRON')) { $number_of_queries++; }

$progressCallback(null, $number_of_queries, __('Creating database structure…'));
Expand Down Expand Up @@ -2185,6 +2185,8 @@ public static function createSchema($lang = 'en_GB', ?DBmysql $database = null,
]
);
}

$progressCallback($number_of_queries, $number_of_queries, __('Done!'));
}


Expand Down

0 comments on commit ddbaf78

Please sign in to comment.