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

Argument type error in database activity

    Details

    • Testing Instructions:
      Hide

      1. login as admin
      2. create new DB activity for a course
      3. create a new 'text' field and save
      4. select template from the available tab

      Show
      1. login as admin 2. create new DB activity for a course 3. create a new 'text' field and save 4. select template from the available tab
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull from Repository:

      Description

      The following error appear when trying to set a template for the activity.

      Debug info: Argument 1 passed to html_table_row::__construct() must be an array, string given, called in /m20/moodle/mod/data/lib.php on line 530 and defined
      Stack trace:
       
          * line 359 of /lib/setuplib.php: coding_exception thrown
          * line 1785 of /lib/outputcomponents.php: call to default_error_handler()
          * line 530 of /mod/data/lib.php: call to html_table_row->__construct()
          * line 153 of /mod/data/templates.php: call to data_generate_default_template()

      The error only occurs in MOODLE_20_Stable. Sam has fixed the error for 2.1 version through MDL-27471.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Looks Good To me Rossie

            Show
            rajeshtaneja Rajesh Taneja added a comment - Looks Good To me Rossie
            Hide
            rwijaya Rossiani Wijaya added a comment -

            Thanks Raj.

            Submitting for integration.

            Show
            rwijaya Rossiani Wijaya added a comment - Thanks Raj. Submitting for integration.
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Integrated, thanks!

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Integrated, thanks!
            Hide
            andyjdavis Andrew Davis added a comment -

            Looks good.

            Show
            andyjdavis Andrew Davis added a comment - Looks good.
            Hide
            samhemelryk Sam Hemelryk added a comment -

            Congratulations - this fix has just been released in the weeklies.

            Show
            samhemelryk Sam Hemelryk added a comment - Congratulations - this fix has just been released in the weeklies.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11