Details
-
Type:
Bug
-
Status: CLOSED
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.7
-
Component/s: Lessons
-
Labels:
-
11 status:Resolved
-
Previous Issue Keys:LSNBLDR-740
Description
When Lessons fires off a read event for SimplePageItem objects, it creates the event ref in the following format:
/lessonbuilder/item/<ID>
However, the ID it's sticking in there is retrieved via the getSakaiId() method. This method returns something other than the actual item ID.
In testing, I've found that typically it is an integer value of the actual ID minus 1. For example, if the item's ID is 401901, the value returned from getSakaiId() is 401900.
When searching through the code, it seems this field could also be used for storing an entity reference to some other object (maybe a quiz or an assignment).
However, for the purposes of events and resolving the event reference in question, we don't care about the entity reference that could be on the page/item. What we really want to resolve is the actual Lessons page/item. So the 'sakai ID' is irrelevant here; it should always be storing the actual item ID in the event ref string.
Gliffy Diagrams
Zeplin
Attachments
Issue Links
- is related to
-
SAK-38093 Lessons event ref for event type 'lessonbuilder.read' is ambiguous
-
- CLOSED
-