From 821c14ee864266a42d93713db0a15c676fcca8d3 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 5 Nov 2021 10:28:09 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03904=20Fix=20scheduled=20backups=20not?= =?UTF-8?q?=20being=20restorable=20from=20user=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-backup/status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-backup/status.php b/datamodels/2.x/itop-backup/status.php index 7f030e9272..6a10d27a64 100644 --- a/datamodels/2.x/itop-backup/status.php +++ b/datamodels/2.x/itop-backup/status.php @@ -255,10 +255,10 @@ try { 'size' => $sSize, 'actions' => BlockRenderer::RenderBlockTemplates($oButton), ); - $sButtonOnClickJS .= '$("#'.$oButton->GetId().'").on("click", function () {LaunchRestoreNow("'.$sFileEscaped.'", "'.$sConfirmRestore.'");});'; } else { $aDetails[] = array('file' => $sName, 'size' => $sSize, 'actions' => BlockRenderer::RenderBlockTemplates($oButton)); } + $sButtonOnClickJS .= '$("#'.$oButton->GetId().'").on("click", function () {LaunchRestoreNow("'.$sFileEscaped.'", "'.$sConfirmRestore.'");});'; } $aConfig = array( 'file' => array('label' => Dict::S('bkp-table-file'), 'description' => Dict::S('bkp-table-file+')),