N°3904 Fix scheduled backups not being restorable from user interface

This commit is contained in:
Stephen Abello
2021-11-05 10:28:09 +01:00
parent 30f1ad8da8
commit 821c14ee86

View File

@@ -255,10 +255,10 @@ try {
'size' => $sSize, 'size' => $sSize,
'actions' => BlockRenderer::RenderBlockTemplates($oButton), 'actions' => BlockRenderer::RenderBlockTemplates($oButton),
); );
$sButtonOnClickJS .= '$("#'.$oButton->GetId().'").on("click", function () {LaunchRestoreNow("'.$sFileEscaped.'", "'.$sConfirmRestore.'");});';
} else { } else {
$aDetails[] = array('file' => $sName, 'size' => $sSize, 'actions' => BlockRenderer::RenderBlockTemplates($oButton)); $aDetails[] = array('file' => $sName, 'size' => $sSize, 'actions' => BlockRenderer::RenderBlockTemplates($oButton));
} }
$sButtonOnClickJS .= '$("#'.$oButton->GetId().'").on("click", function () {LaunchRestoreNow("'.$sFileEscaped.'", "'.$sConfirmRestore.'");});';
} }
$aConfig = array( $aConfig = array(
'file' => array('label' => Dict::S('bkp-table-file'), 'description' => Dict::S('bkp-table-file+')), 'file' => array('label' => Dict::S('bkp-table-file'), 'description' => Dict::S('bkp-table-file+')),