Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error on HR dashboa...
 
Notifications
Clear all

Error on HR dashboard for a month

5 Posts
2 Users
0 Reactions
1,824 Views
(@mrjulien)
Posts: 5
Active Member
Topic starter
 
[#6365]

Hi

version 8.1.8

I'm facing an error for a specific month. It works well for november but when I switch to december, there's a timeout (see pic below).

I try to swith to log level = 4 but I don't find any change to help me to debug
Please find the detail of December leave period

looks strange that idUser or idResource is the same for all the records (note that there is about ten different people and id=14 is mine)


 
Posted : 17 Nov 2019 2H25
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

Holw long does it take to produce report for november ?
Few seconds or more than a minute ?


 
Posted : 19 Nov 2019 2H12
(@mrjulien)
Posts: 5
Active Member
Topic starter
 

Holw long does it take to produce report for november ?
Few seconds or more than a minute ?

Only few seconds...


 
Posted : 19 Nov 2019 2H29
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

We found some possible infinite loop.

Try and replace line 1800 in /tool/projeqtor-hr.php from

            if ($leavesInArrayDate!=null and array_key_exists($date, $leavesInArrayDate)) { continue; }

to

            if ($leavesInArrayDate!=null and array_key_exists($date, $leavesInArrayDate)) { 
              $nextDate = new DateTime($date);
              $nextDate->add(new DateInterval("P1D"));
              $date = $nextDate->format("Y-m-d");
              continue; 
            }

 
Posted : 19 Nov 2019 13H37
(@mrjulien)
Posts: 5
Active Member
Topic starter
 

B)
good job, it works !
many thanks


 
Posted : 21 Nov 2019 0H49
Share:

Scroll to Top