reminder popup fix

This commit is contained in:
yuri
2019-02-01 16:42:27 +02:00
parent 8af40f2444
commit 4080c8c877
2 changed files with 8 additions and 0 deletions
@@ -50,6 +50,7 @@ class SubmitPopupReminders extends \Espo\Core\Jobs\Base
'type' => 'Popup',
'remindAt<=' => $now,
'startAt>' => $nowShifted,
'isSubmitted' => false,
])->find();
$submitData = [];
@@ -100,6 +101,10 @@ class SubmitPopupReminders extends \Espo\Core\Jobs\Base
}
$submitData[$userId][] = $data;
$reminder->set('isSubmitted', true);
$this->getEntityManager()->saveEntity($reminder);
}
foreach ($submitData as $userId => $list) {
@@ -31,6 +31,9 @@
"userId": {
"type": "varchar",
"maxLength": 50
},
"isSubmitted": {
"type": "bool"
}
},
"collection": {