Merge pull request #4763 from MrPetovan/bug/4760-fix-event-typo

Fix event id typo in Model\Event
This commit is contained in:
Michael Vogel 2018-04-07 08:22:45 +02:00 committed by GitHub
commit 7c9bd69e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ class Event extends BaseObject
'nofinish' => $event['nofinish'],
];
dba::update('event', $updated_fields, ['id' => $event['cid'], 'uid' => $event['uid']]);
dba::update('event', $updated_fields, ['id' => $event['id'], 'uid' => $event['uid']]);
$item = dba::selectFirst('item', ['id'], ['event-id' => $event['id'], 'uid' => $event['uid']]);
if (DBM::is_result($item)) {