View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - bug in reports => planning => work plan per week - 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)

 

 

 
 

bug in reports => planning => work plan per week

More
27 Aoû 2012 18:22 - 27 Aoû 2012 18:23 #1 by samfaitmal
When you have planned activities over 2013, trying to get this report enters in an endless loop.

I have investigated the bug and the result is that function weekFormat from projector.php is wrong:
function weekFormat($dateValue) { 
    return date('Y-W', strtotime ($dateValue) );       
} 

This year, week 52 ends on december the 30th.
Monday 31th is assumed to be in week 1 of year 2013.
But weekFormat(), when you provide "2012-12-31" as $dateValue returns "2012-01".
So, a test for similar cases shall be added to weekFormat in order to avoid the bug.


Regards,
Sam
Last edit: 27 Aoû 2012 18:23 by samfaitmal.

Please Connexion or Create an account to join the conversation.

More
04 Déc 2012 11:48 - 04 Déc 2012 11:48 #2 by a.mikael
Hello,

I think I have any solution :
$w = (date('W', strtotime ($dateValue)));
$m = (date('m', strtotime ($dateValue)));

if($w == 1 && $m == 12)
{
  return date("Y-W", strtotime("+1 year", strtotime($dateValue."-01" )));
}
else return date('Y-W', strtotime ($dateValue)); 
Last edit: 04 Déc 2012 11:48 by a.mikael.

Please Connexion or Create an account to join the conversation.

More
04 Déc 2012 14:55 #3 by babynus
Great !

Fixing will be included in V3.1.

Thanks for your contribution.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.033 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.