View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - bug in reports => planning => work plan per week - ProjeQtOr
 
 

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

More
27 Aug 2012 18:22 - 27 Aug 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 Aug 2012 18:23 by samfaitmal.

Please Log in or Create an account to join the conversation.

More
04 Dec 2012 11:48 - 04 Dec 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 Dec 2012 11:48 by a.mikael.

Please Log in or Create an account to join the conversation.

More
04 Dec 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 Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.030 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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