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

Move sql in index.php to an api

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • BACKEND
    • 2.8
    • Reports
    • MOODLE_28_STABLE
    • MDL-46678-master
    • Hide
      1. Go to gradebook history report, after all the setup as requested in the parent issue.
      2. Make sure the grader drop down looks ok and containts fullname of all the graders
      3. Select a grader and submit, make sure the table is updated.
      4. Run unit tests in grade/report/history/tests/report_test.php
      Show
      Go to gradebook history report, after all the setup as requested in the parent issue. Make sure the grader drop down looks ok and containts fullname of all the graders Select a grader and submit, make sure the table is updated. Run unit tests in grade/report/history/tests/report_test.php
    • 5
    • BACKEND Sprint 15

      Index.php has the following hardcoded sql

      $sql = "SELECT u.id, ".$DB->sql_concat('u.lastname', "' '", 'u.firstname')."
              FROM {user} u
              JOIN {grade_grades_history} ggh ON ggh.usermodified = u.id
              JOIN {grade_items} gi ON gi.id = ggh.itemid
              WHERE gi.courseid = :courseid
              GROUP BY u.id
              ORDER BY u.lastname ASC, u.firstname ASC";
      

      It needs to be moved to an api.

            ankit_frenz Ankit Agarwal
            ankit_frenz Ankit Agarwal
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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