XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      We need a function to detect circular references whenever a calculation has been edited:

      detect_circular_reference(array) => boolean

      The array is a whole lot of calculation strings containing verified idnumber strings for all the calcualtions in a course, eg:

      C= A + B
      A = B + C
      B = C + A

      See Double Loop on this page for an algorithm: http://phrogz.net/nodes/traversingdirectedgraph.asp

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            dougiamas Martin Dougiamas
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08