Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85262

Ad-hoc tasks report shows "ASAP" for tasks not yet due.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.5
    • Tasks

      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.

            pholden Paul Holden
            marxjohnson Mark Johnson
            Daniel Ziegenberg Daniel Ziegenberg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.