From 4b3bf70eb514cb6b0fd64621cb684231cc02ff16 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 15 Mar 2023 12:04:28 +0100 Subject: [PATCH] #10451 Fixed phardata --- .../lib/UpdateManager/UI/Manager.php | 4 +++- .../resources/javascript/umc_offline.js | 21 +++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/pandora_console/update_manager_client/lib/UpdateManager/UI/Manager.php b/pandora_console/update_manager_client/lib/UpdateManager/UI/Manager.php index 7c56dec08d..9c6abff902 100644 --- a/pandora_console/update_manager_client/lib/UpdateManager/UI/Manager.php +++ b/pandora_console/update_manager_client/lib/UpdateManager/UI/Manager.php @@ -623,7 +623,9 @@ class Manager if ($server_update === false) { $return['files'] = Client::checkOUMContent($file_path); } else { - $return['files'] = Client::checkTGZContent($file_path); + // Commented line for memory limit problems. + // $return['files'] = Client::checkTGZContent($file_path); + $return['files'] = null; } if (session_status() !== PHP_SESSION_ACTIVE) { diff --git a/pandora_console/update_manager_client/resources/javascript/umc_offline.js b/pandora_console/update_manager_client/resources/javascript/umc_offline.js index 027908ded7..a32dfc1e5c 100644 --- a/pandora_console/update_manager_client/resources/javascript/umc_offline.js +++ b/pandora_console/update_manager_client/resources/javascript/umc_offline.js @@ -172,18 +172,21 @@ function form_upload(url, auth, current_package) { log_zone.html("
" + texts.uploadSuccess + "
"); log_zone.append("
" + texts.uploadMessage + "
"); log_zone.append("
" + texts.clickToStart + "
"); - var file_list = - "

" + texts.fileList + "

"; - if (res.files) { - res.files.forEach(function(e) { - file_list += "
" + e + "
"; - }); + if (res.files !== null) { + var file_list = + "

" + texts.fileList + "

"; + + if (res.files) { + res.files.forEach(function(e) { + file_list += "
" + e + "
"; + }); + } + + file_list += "
"; + log_zone.append(file_list); } - file_list += "
"; - log_zone.append(file_list); - // Show messages $("#log_zone").slideDown(400, function() { $("#log_zone").height(200);