Skip to content

Commit

Permalink
SAK-40492: Add calendar read events to sitestats (sakaiproject#5899)
Browse files Browse the repository at this point in the history
  • Loading branch information
plukasew authored and ottenhoff committed Aug 23, 2018
1 parent 5569ad6 commit 17d78a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ else if (stateName.equals(STATE_SET_FREQUENCY))
// need to cleanup the cal references which look like /calendar/calendar/4ea74c4d-3f9e-4c32-b03f-15e7915e6051/main
String eventRef = StringUtils.replace(calendarRef, "/main", "/"+stateName);
String calendarEventId = state.getCalendarEventId();
if (StringUtils.isNotBlank(calendarEventId)) {
if (StringUtils.isNotBlank(calendarEventId) && stateName.equals("description")) {
eventRef += "/"+calendarEventId;
}
ets.post(ets.newEvent("calendar.read", eventRef, false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
selected="true">
<event eventId="calendar.new" selected="true"/>
<event eventId="calendar.revise" selected="true"/>
<!--<event eventId="calendar.read" selected="true"/>-->
<event eventId="calendar.read" selected="true"/>
<eventParserTip for="contextId" separator="/" index="3"/>
</tool>

Expand Down
1 change: 1 addition & 0 deletions sitestats/sitestats-bundle/src/resources/Events.properties
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ search.query = Search performed
# scheduler
calendar.new=Calendar event new
calendar.revise=Calendar event revise
calendar.read=View calendar

# section
section.student.join=Section student join
Expand Down

0 comments on commit 17d78a4

Please sign in to comment.