phpreport icon indicating copy to clipboard operation
phpreport copied to clipboard

Copying tasks from a selected day sometimes doesn't delete the auto generated blank task

Open thejoshwolfe opened this issue 8 years ago • 1 comments

If you navigate to a day with no tasks and click on "Copy tasks from selected day" at just the right time after loading the page, the auto generated blank task shows up in addition to the copied tasks. It looks like there's a race condition between the code that adds the blank task when there are no tasks (does that code only run after a delay for some reason?) and clicking on the "Copy ..." button.

thejoshwolfe avatar Sep 29 '16 12:09 thejoshwolfe

#426 closed as duplicate. From the description there:

The problem must be related with how the empty task is created. It tries to create the empty task, but in case that the task load operation hasn't finished yet, it schedules a new attempt one second later. The bug must happen when you create tasks after an attempt to create the empty task but before the next one.

jaragunde avatar Nov 14 '18 08:11 jaragunde