Open caperneoignis opened 6 years ago
We can not assume event will have an id, we need to handle this/assign this appropriately.
Yeah I'd recommend checking if it's there and setting it to null
if not.
Any opposition to using a ternary expression in those spots? And to use zero instead of null since null can put us back into the undefined boat depending on where that element ends up?
I can see four uses of the event's id.
Let me know if there are any other uses. I think the first usage is actually meant to be $event->objectid
rather than the $event->id
. If that's the case, we should probably just avoid using the event id, except where it's absolutely needed like the 4th usage where the id will have to exist.
That's agreeable.
Description When going through a quiz, with the logstore app set to real time transmission to the LRS. I get the following in several places.
And again at transformer\handler.php line 37
$eventobj->id is undefined. Version
Steps to reproduce the bug
Expected behaviour
Actual behaviour