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

Stupid SQL in stats

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0
    • Course
    • None
    • MOODLE_20_STABLE

      Presumably when it says

      $DB->get_field_sql('SELECT timeend FROM

      {stats_user_daily} ORDER BY timeend');

      It means

      $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_user_daily}

      ');

      The attached patch fixes this. I guess the fix needs to be backported to 1.9 though.

      Also, I don't think "Sorry, there is no available data to display" should be a print_error. It should be a nicer message than that. I have not fixed that.

            poltawski Dan Poltawski
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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