fix error update manager pandora_enterprise#12447

This commit is contained in:
daniel 2023-11-30 10:13:18 +01:00
parent 98d414f262
commit 817811ffac
3 changed files with 2 additions and 9 deletions

View File

@ -983,7 +983,8 @@ if (is_ajax()) {
<th style="width: 60%; text-align: left; border: 0px;">
<h1>'.$product_name.'</h1>
<p><span>'.__('Version').' '.$pandora_version.$lts_name.' - '.(enterprise_installed() ? 'Enterprise' : 'Community').'</span></p>
<p><span>'.__('MR version').'</span> MR'.$config['MR'].'</p>
<p><span>'.__('Current package').'</span> '.$config['current_package'].'</p>
<p><span>'.__('MR version').'</span> MR'.$config['MR'].'</p>
<p><span>Build</span>'.$build_version.'</p>';
if (enterprise_installed() === true) {
$dialog .= '<p><span>'.__('Support expires').'</span>'.$license_expiry_date.'</p>';

View File

@ -1829,13 +1829,6 @@ class Client
}
} else {
// Manually uploaded package.
if (is_numeric($package['version']) !== true) {
$this->lastError = 'Version does not match required format (numeric)';
$this->notify(10, $this->lastError, false);
$this->unlock();
return false;
}
$classic_open_packages = false;
$nextUpdate = [ 'version' => $package['version'] ];
$file_path = $package['file_path'];

View File

@ -487,7 +487,6 @@ function updateOfflineProgress(url, auth) {
* Cancel update.
*/
function cancelUpdate(reason = "") {
console.error(reason);
var taskStatusLogContainer = $("#result li");
taskStatusLogContainer.addClass("error");
taskStatusLogContainer.find("p").text(texts.rejectedUpdate + " " + reason);