Pull-request: #20070 Fixes: #20065 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
f2572c4228
@ -174,6 +174,16 @@ class Events
|
||||
if ($this->response->isAjax()) {
|
||||
if ($message->isSuccess()) {
|
||||
$events = $this->dbi->getEvents($db, $_POST['item_name']);
|
||||
if ($events === []) {
|
||||
$this->response->setRequestStatus(false);
|
||||
$this->response->addJSON(
|
||||
'message',
|
||||
__('The event was dropped immediately after creation.')
|
||||
);
|
||||
$this->response->addJSON('tableType', 'events');
|
||||
exit;
|
||||
}
|
||||
|
||||
$event = $events[0];
|
||||
$this->response->addJSON(
|
||||
'name',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user