Moodle
  1. Moodle
  2. MDL-14488

get_my_remotecourses() don't load all remote courses assignments

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.9
    • Fix Version/s: 1.8.7, 1.9.3, 2.0
    • Component/s: MNet
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      The query of get_my_remotecourses() starts with c.remoteid, when get_records_sql creates the objects array, if the user have remote course assignments to courses of diferent hosts with the same remoteid get_my_remotecourses() don't load all the remote course assignments.

      I have attached the patch with c.id field added to the query.

        Gliffy Diagrams

          Activity

          David Monllaó created issue -
          Martin Dougiamas made changes -
          Field Original Value New Value
          Assignee Donal McMullan [ donal@catalyst.net.nz ] Nobody [ nobody ]
          Eloy Lafuente (stronk7) made changes -
          Fix Version/s 1.9.3 [ 10290 ]
          Fix Version/s 1.8.7 [ 10291 ]
          Assignee Nobody [ nobody ] Peter Bulmer [ peterbulmer ]
          Peter Bulmer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0 [ 10122 ]
          Resolution Fixed [ 1 ]
          Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Martin Dougiamas made changes -
          Workflow jira [ 26077 ] MDL Workflow [ 59548 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 59548 ] MDL Full Workflow [ 88705 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: