View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Diary Display bug - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Diary Display bug

More
03 Déc 2015 17:16 #1 by bpuget
Diary Display bug was created by bpuget
Hi,

I've found anomaly when displaying Diary. As shown in capture1 (see attached screenshot), there are more weeks displayed than the necessary Weeks shown in my browser tab. But we can't select days in the bottom of Diary ! => days in additional weeks are inaccessible !

After correcting this anomaly, I found a bug on the calculation of the number of the week on January. The bug occurs when first week of year is 52 or 53.
I have a solution for this issue. I fixed all this to get a new version of Diary.php. Are you interested ?
Attachments:

Please Connexion or Create an account to join the conversation.

More
03 Déc 2015 19:50 #2 by babynus
Replied by babynus on topic Diary Display bug
Of course, if you solved issue, please share !!! :woohoo:

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
04 Déc 2015 09:52 #3 by bpuget
Replied by bpuget on topic Diary Display bug
In Diary.php, find part of code beginning with
$projectColorArray=array();
and ending with
} else if ($period=="week") {
, and paste these lines :
$projectColorArray=array();
  $projectNameArray=array();
  $trHeight=100;
  if ($period=="month") {
  	$week=weekNumber($year.'-'.$month.'-01');
  	$lastWeek=weekNumber($year.'-'.$month.'-'.intval(date("t",$month)));
	if ($lastWeek>$week) {
		$trHeight=round(100/($lastWeek-$week+1))-1;
	} else {
		$trHeight=round(100/($lastWeek+1))-1;
	}
  }
  if ($period=="month") {
    if ($month=='01' and $week>50) {
      $currentDay=date('Y-m-d',firstDayofWeek($week,$year-1));
    } else {
  	  $currentDay=date('Y-m-d',firstDayofWeek($week,$year));
    }
  	$lastDayOfMonth=date('t',strtotime($year.'-'.$month.'-01'));
	$weekOfLastDayOfMonth=date('W',strtotime($year.'-'.$month.'-'.$lastDayOfMonth));
  	$firstDayOfLastWeek=date('Y-m-d',firstDayofWeek($weekOfLastDayOfMonth, $year ));
  	$endDay=addDaysToDate($firstDayOfLastWeek, 6);
  	$inScopeDay=false;	
  } else if ($period=="week") {

I'm not sure it works fine in all contextes (IE8 : strange, Chrome : OK).

Please Connexion or Create an account to join the conversation.

More
04 Déc 2015 18:35 #4 by babynus
Replied by babynus on topic Diary Display bug
You contribution is included in V5.2

Thank you !

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.034 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.