Fix event id typo in Model\Event

This commit is contained in:
Hypolite Petovan 2018-04-06 20:58:09 -04:00
parent 59d42e9681
commit 8b5341b84c

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)) {