* ImportExport: fix not working scheduled import caused by failure to update (the not existing) UI

This commit is contained in:
ralf 2024-02-06 10:25:57 +02:00
parent be7f95d0aa
commit fa1e4017d7

View File

@ -416,7 +416,9 @@ use EGroupware\Api\Etemplate;
public static function sendUpdate($complete, $label = '', $log = '')
{
// No real push, no updates
if(EGroupware\Api\Json\Push::onlyFallback() || !\EGroupware\Api\Json\Request::isJSONRequest())
if (EGroupware\Api\Json\Push::onlyFallback() || !\EGroupware\Api\Json\Request::isJSONRequest() ||
// async service has no session(-id) and push will throw an AssertionFailed exception
empty($GLOBALS['egw']->session->sessionid))
{
error_log($complete . "% $label\t" . $log);
return;
@ -578,4 +580,4 @@ use EGroupware\Api\Etemplate;
return $ok;
}
}
?>
?>