Importexport: Disable push notifications when importing to save time

This commit is contained in:
nathan 2023-12-13 10:45:19 -07:00
parent 0f6d01f5a0
commit de36a0af6c

View File

@ -150,8 +150,13 @@ use EGroupware\Api\Etemplate;
}
else
{
// Disable push so we don't overload or spend time notifying
EGroupware\Swoolepush\Hooks::pushDisabled(true);
importexport_helper_functions::$dry_run = false;
$count = $plugin->import($file, $definition_obj);
EGroupware\Swoolepush\Hooks::pushDisabled(false);
// Close preview
EGroupware\Api\Json\Response::get()->call('app.importexport.closePreview');