fix error update manager pandora_enterprise#12447
This commit is contained in:
parent
98d414f262
commit
817811ffac
|
@ -983,6 +983,7 @@ if (is_ajax()) {
|
||||||
<th style="width: 60%; text-align: left; border: 0px;">
|
<th style="width: 60%; text-align: left; border: 0px;">
|
||||||
<h1>'.$product_name.'</h1>
|
<h1>'.$product_name.'</h1>
|
||||||
<p><span>'.__('Version').' '.$pandora_version.$lts_name.' - '.(enterprise_installed() ? 'Enterprise' : 'Community').'</span></p>
|
<p><span>'.__('Version').' '.$pandora_version.$lts_name.' - '.(enterprise_installed() ? 'Enterprise' : 'Community').'</span></p>
|
||||||
|
<p><span>'.__('Current package').'</span> '.$config['current_package'].'</p>
|
||||||
<p><span>'.__('MR version').'</span> MR'.$config['MR'].'</p>
|
<p><span>'.__('MR version').'</span> MR'.$config['MR'].'</p>
|
||||||
<p><span>Build</span>'.$build_version.'</p>';
|
<p><span>Build</span>'.$build_version.'</p>';
|
||||||
if (enterprise_installed() === true) {
|
if (enterprise_installed() === true) {
|
||||||
|
|
|
@ -1829,13 +1829,6 @@ class Client
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Manually uploaded package.
|
// 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;
|
$classic_open_packages = false;
|
||||||
$nextUpdate = [ 'version' => $package['version'] ];
|
$nextUpdate = [ 'version' => $package['version'] ];
|
||||||
$file_path = $package['file_path'];
|
$file_path = $package['file_path'];
|
||||||
|
|
|
@ -487,7 +487,6 @@ function updateOfflineProgress(url, auth) {
|
||||||
* Cancel update.
|
* Cancel update.
|
||||||
*/
|
*/
|
||||||
function cancelUpdate(reason = "") {
|
function cancelUpdate(reason = "") {
|
||||||
console.error(reason);
|
|
||||||
var taskStatusLogContainer = $("#result li");
|
var taskStatusLogContainer = $("#result li");
|
||||||
taskStatusLogContainer.addClass("error");
|
taskStatusLogContainer.addClass("error");
|
||||||
taskStatusLogContainer.find("p").text(texts.rejectedUpdate + " " + reason);
|
taskStatusLogContainer.find("p").text(texts.rejectedUpdate + " " + reason);
|
||||||
|
|
Loading…
Reference in New Issue