Importexport: Always show import preview, even if there are warnings

This commit is contained in:
nathan 2023-06-21 10:20:42 -06:00
parent eaacac1b40
commit 59f94300db

View File

@ -137,14 +137,14 @@ use EGroupware\Api\Etemplate;
if($content['dry-run'])
{
$preview = $this->preview($plugin, $file, $definition_obj);
if(trim($this->message) == '')
{
$template->setElementAttribute('message', 'value', $this->message);
// Clear first, to prevent request from being collected if the result is the same
$template->setElementAttribute('preview', 'value', '');
$template->setElementAttribute('preview', 'value', $preview);
return;
}
}
else
{
importexport_helper_functions::$dry_run = false;