-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.5
While looking at the ad-hoc tasks report, I noticed that there were a lot of instances of the \mod_forum\task\send_user_digests task, which said the next one was due to run at 5pm today:
However, viewing the list of instances for this task, they all say they are due to run "ASAP":
I believe that this is because this condition in `tool_task_renderer` is backwards:
$nextrun = $due ? userdate($nextruntime) : get_string('asap', 'tool_task'); |
If the task is due, it displays the next runtime. If it's not due, it displays "ASAP", which is incorrect.