Author Topic: Task date display in calendar  (Read 2382 times)

stelcheck

  • Newbie
  • *
  • Posts: 1
    • View Profile
Task date display in calendar
« on: June 05, 2009, 11:19:18 am »
When creating a task, two things seems to be buggy in the calendar if such task have different starting and ending dates:

1) in the calendar itself, you do not see the task over multiple days, which is something you may expect I believe.

2) Once such task is clicked, the starting and ending dates are the same (using only the ending date) for some reason.

If this is a bug, how long does it take generally for a bugfix to come out? If it is just me, where should I look in the code to add the features?

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Task date display in calendar
« Reply #1 on: June 08, 2009, 11:10:38 am »
Hi,

1) This is not a bug, calendar is currently showing only the task's due date.

2) This one has been reported before, there is no fix yet but it will be available soon.

Generally, if the fix does not implies much work, we post it, else we wait some time and release a new version containing various fixes, or directly fix them in next beta version.

thanks for reporting !

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Task date display in calendar
« Reply #2 on: June 08, 2009, 11:35:03 am »
hi,

to fix this you only have to modify this file
"application/views/task/task_list.php", at lines 21 and 23 replace "getDueDate()" for "getStartDate()"
it should look like this
Code: [Select]
#21   <div class="startDate"><b><?php echo lang('start date'?>: </b><?php echo format_date($task_list->getStartDate(), null0?></div>
#22   <?php } else { ?>
#23   <div class="startDate"><b><?php echo lang('start date'?>: </b><?php echo format_descriptive_date($task_list->getStartDate(), 0?></div>