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

get_record call in get_timezone_record has third param as bool, whereas it should be int

    Details

    • Testing Instructions:
      Hide

      0/ enable debug developer
      1/ set up timezone on your server
      2/ load timezones if needed (admin->location->update timezones)
      3/ make sure it does not throw any exceptions or notices
      4/ edit your profile and change the timezone to some known timezone near you
      5/ after saving the profile, the "Last access" in profile page shows the correct time for the timezone selected, and no warnings/notices are shown.

      Show
      0/ enable debug developer 1/ set up timezone on your server 2/ load timezones if needed (admin->location->update timezones) 3/ make sure it does not throw any exceptions or notices 4/ edit your profile and change the timezone to some known timezone near you 5/ after saving the profile, the "Last access" in profile page shows the correct time for the timezone selected, and no warnings/notices are shown.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w04_MDL-31208_m23_timezone

      Description

      In lib/moodlelib.php, third argument to the get_record call in get_timezone_record($timezonename) is incorrect.
      Currently it is true and should be IGNORE_MULTIPLE.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Mar/12