Moodle
  1. Moodle
  2. MDL-3801

Online assignment fix shouldn't run if we haven't got the new assignment module yet

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Rank:
      10972

      Description

      The online assignment fix shouldn't run at all during normal 1.4 -> 1.5 upgrade. Can you find out the assignment version http://moodle.cvs.sourceforge.net/moodle/moodle/mod/assignment/version.php from the old version and check for that in the modules table before trying to run the fix?

      1054: Unknown column 'a.assignmenttype' in 'where clause'

      adodb_mysql._execute(SELECT a.id

      FROM course_modules cm,

      assignment a

      WHERE cm.id =..., false) % line 837, file: adodb.inc.php

      adodb_mysql.execute(SELECT a.id

      FROM course_modules cm,

      assignment a

      WHERE cm.id =...) % line 452, file: datalib.php

      record_exists_sql(SELECT a.id

      FROM course_modules cm,

      assignment a

      WHERE cm.id =...) % line 75, file: oacleanup.php

      online_assignment_cleanup() % line 1455, file: mysql.php

      main_upgrade(2004083140) % line 163, file: index.php

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Martin Dougiamas (martin at moodle.com) Saturday, 23 July 2005, 02:13 PM:

        yoo hoo!

        From Shane Elliott (shane at pukunui.com) Saturday, 23 July 2005, 06:55 PM:

        Fixed in CVS.

        Show
        Martin Dougiamas added a comment - From Martin Dougiamas (martin at moodle.com) Saturday, 23 July 2005, 02:13 PM: yoo hoo! From Shane Elliott (shane at pukunui.com) Saturday, 23 July 2005, 06:55 PM: Fixed in CVS.
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user

          People

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

            Dates

            • Created:
              Updated:
              Resolved: