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,13 +137,13 @@ use EGroupware\Api\Etemplate;
if($content['dry-run']) if($content['dry-run'])
{ {
$preview = $this->preview($plugin, $file, $definition_obj); $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', ''); // Clear first, to prevent request from being collected if the result is the same
$template->setElementAttribute('preview', 'value', $preview); $template->setElementAttribute('preview', 'value', '');
return; $template->setElementAttribute('preview', 'value', $preview);
} return;
} }
else else
{ {