Merge pull request #4763 from MrPetovan/bug/4760-fix-event-typo
Fix event id typo in Model\Event
This commit is contained in:
commit
7c9bd69e22
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ class Event extends BaseObject
|
||||||
'nofinish' => $event['nofinish'],
|
'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']]);
|
$item = dba::selectFirst('item', ['id'], ['event-id' => $event['id'], 'uid' => $event['uid']]);
|
||||||
if (DBM::is_result($item)) {
|
if (DBM::is_result($item)) {
|
||||||
|
|
Loading…
Reference in a new issue