type fixes

This commit is contained in:
Yuri Kuznetsov
2022-03-21 15:52:30 +02:00
parent dd1a74b4c0
commit c5eb6c560b
3 changed files with 9 additions and 2 deletions
@@ -64,7 +64,12 @@ class AdminNotifications implements
$latestRelease = $this->getLatestRelease();
if ($latestRelease === null) {
return;
}
if (empty($latestRelease['version'])) {
// @todo Check the logic. WTF?
$this->configWriter->set('latestVersion', $latestRelease['version']);
$this->configWriter->save();
+1
View File
@@ -294,6 +294,7 @@ class App
$entityManager = $this->entityManager;
/** @var string[] */
$teamIdList = $user->getLinkMultipleIdList('teams');
$groupEmailAccountPermission = $this->acl->get('groupEmailAccountPermission');
+3 -2
View File
@@ -98,10 +98,11 @@ class Attachment extends Record
$contents = '';
}
$attachment = $this->getEntityManager()->getEntity('Attachment');
$attachment = $this->entityManager->getNewEntity('Attachment');
$attachment->set('contents', $contents);
$this->getEntityManager()->saveEntity($attachment);
$this->entityManager->saveEntity($attachment);
return $attachment;
}