mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +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'])
|
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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user