Skip to content

Commit 23286dd

Browse files
jonespmern
authored andcommitted
SAK-41194 - Calendar: Week view not displaying calendar table correctly (sakaiproject#6497)
Looks like my logic was incorrect, tested on a lot more calendar events
1 parent 19e389e commit 23286dd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

calendar/calendar-tool/tool/src/webapp/velocity.properties

+6-1
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,16 @@ classpath.resource.loader.class = org.apache.velocity.runtime.resource.loader.Cl
7979
velocimacro.library = VM_chef_library.vm
8080

8181
###velocimacro.permissions.allow.inline = true
82-
###velocimacro.permissions.allow.inline.to.replace.global = false
8382
###velocimacro.permissions.allow.inline.local.scope = false
8483

8584
###velocimacro.context.localscope = false
8685

86+
## Set these 3 values to allow inline macro changes (to help debug)
87+
88+
#velocimacro.library.autoreload=true
89+
#file.resource.loader.cache=false
90+
#velocimacro.permissions.allow.inline.to.replace.global=true
91+
8792
#----------------------------------------------------------------------------
8893
# INTERPOLATION
8994
#----------------------------------------------------------------------------

calendar/calendar-tool/tool/src/webapp/vm/calendar/chef_calendar_viewWeek.vm

+1-3
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@
337337
#end
338338

339339
#set ($du = $endTime.getTime().intValue() - $startTime.getTime().intValue())
340-
## The Real non-fudged endtime
341-
#set ($dureal = $endTime.getTime().intValue() - $startTime.getTime().intValue())
342340
#set($dhour = $helper.getduration($du.longValue(),3600000))
343341
#set($dminute = $helper.getFractionIn($du.longValue(),$dhour))
344342

@@ -372,7 +370,7 @@
372370
#set ($rowspan = $rowspan + 1)
373371
#end
374372
## This endtime may have been fudged, if so it will need an extra row as it's being returned from getNewEvents
375-
#if ($endTime != $endTimeActual)
373+
#if ($endTime == $endTimeActual)
376374
#set ($rowspan = $rowspan + 1)
377375
#end
378376

0 commit comments

Comments
 (0)