Loading...
 
Skip to main content

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
(0)
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):
Image

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:

Image
Copy to clipboard
if ( $_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:

Image
Copy to clipboard
if ( $_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+
Demonstrate Bug (older Tiki versions)
Ticket ID
2094
Created
Thursday 23 October, 2008 13:11:15 UTC
by Unknown
LastModif
Friday 15 January, 2010 18:51:10 UTC


Show PHP error messages