mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Importexport: Always show import preview, even if there are warnings
This commit is contained in:
parent
eaacac1b40
commit
59f94300db
@ -137,13 +137,13 @@ use EGroupware\Api\Etemplate;
|
||||
if($content['dry-run'])
|
||||
{
|
||||
$preview = $this->preview($plugin, $file, $definition_obj);
|
||||
if(trim($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;
|
||||
}
|
||||
|
||||
$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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user