Author Topic: calendar event showing on wrong day  (Read 9586 times)

Eduter

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: calendar event showing on wrong day
« Reply #15 on: March 23, 2010, 07:12:24 pm »
I can complete the problem we have.
On Feng Office 1.6.2, with my colleagues without an Administrator, each time they want to modify a timeslot in the panel "Times",  the date changes automatically to the date of the day. It does not happen on Administrator profiles.
I've tested on Feng 1.7 Beta, the problem is still there.
« Last Edit: March 23, 2010, 08:06:34 pm by Eduter »

waldo2188

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: calendar event showing on wrong day
« Reply #16 on: March 24, 2010, 10:33:32 am »
Hello,

This issue is caused by an access to an inexistant "userSel.options" property.

It's just one line of code to add in the main.js (public/assets/javascript/og/time/main.js) in the function EditTimeslot at the line 216.

We must add a condition to test if the property exists.

before
Code: [Select]
if (userSel){
   for (var i = 0; i < userSel.options.length; i++){
      if (userSel.options[i].value == ts.userId){
         userSel.selectedIndex = i;
         break;  
      }
   }
}


Correction
Code: [Select]
if (userSel){
    if(userSel.options) {
        for (var i = 0; i < userSel.options.length; i++){
            if (userSel.options[i].value == ts.userId){
                userSel.selectedIndex = i;
                break;  
            }
        }
    }
}

Regards
« Last Edit: March 24, 2010, 11:32:48 am by waldo2188 »

Niels

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Vesper Interactive
Re: calendar event showing on wrong day
« Reply #17 on: March 24, 2010, 10:52:43 am »
I would like to keep this post on topic.
I  started this with a calendar problem, not a time tab problem.

waldo2188, your solution is regarding the problem Eduter has, or regarding the calendar not showing the event on the proper day ??

waldo2188

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: calendar event showing on wrong day
« Reply #18 on: March 24, 2010, 11:20:33 am »
Right, it's regarding the Eduter's problem

Roland_Studer

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: calendar event showing on wrong day
« Reply #19 on: April 15, 2010, 09:07:28 am »
I have a similar problem, where a date, in one specific timeslot is shown on the wrong date in the calendar view.

The date shown in the details is correct, I suspect this is some renderding problem.
It only happens with very specific setting, in my case 12:15 thursday, duration 1:45, only in one workspace. very strangeā€¦ if I change it to 12:16 it's shown on friday instead on thursday, with 12:17 it's shown correcltly, very very strangeā€¦