mod-calendar_new.php module displays strange month view when list view in tiki-calendar.php
- Status
- Open
- Subject
- mod-calendar_new.php module displays strange month view when list view in tiki-calendar.php
- Version
- 2.x
- Category
- Usability
- Consistency
- Less than 30-minutes fix
- Feature
- Calendar
Modules - Submitted by
- n3twrkm4n
- Lastmod by
- Philippe Cloutier
- Rating
- Description
Version 2.1 & 2.2
modules/mod-calendar_new.php displays strange month view when selecting LIST VIEW from tiki-calendar.php. The date (numerical) is placed several days backward in regards to day of the week (Monday - Sunday).
Screenshot (sorry so large for clarity):
This issue appears to be with the month view in mod-calendar_new.php assigned to variable $calendarViewMode. When I select $calendarViewMode='week' this issue does not arise.
I duplicated the function below in lib/calendar/calendarlib.php:
Copy to clipboardif ( $_SESSION['CalendarViewList'] == 'list' ) { if ( is_array($listtikievents) ) { foreach ( $listtikievents as $le ) { if ( is_array($le) ) { foreach ( $le as $e ) { $listevents[] = $e; } } } } }
I modified it to say:
Copy to clipboardif ( $_SESSION['CalendarViewList'] == 'calendar' ) { if ( is_array($listtikievents) ) { foreach ( $listtikievents as $le ) { if ( is_array($le) ) { foreach ( $le as $e ) { $listevents[] = $e; } } } } }
This caused it to be "fixed" but it broke in Internet Explorer by showing a full semester view in the calendar. Not so desirable effects. We've since switched to the week view in the mod-calendar_new.php module with no issues.- Importance
- 8
- Easy to solve?
- 8
- Priority
- 64
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2094
- Created
- Thursday 23 October, 2008 13:11:15 UTC
by Unknown - LastModif
- Friday 15 January, 2010 18:51:10 UTC