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

Method sync_users() @ "/auth/db/auth.php" does not register mdl_user->timecreated property.

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide

      Enable the auth/db plugin, create some users on the external database and try to sync those users using the sync_users() method. The created users will be missing their timecreated property.

      Show
      Enable the auth/db plugin, create some users on the external database and try to sync those users using the sync_users() method. The created users will be missing their timecreated property.
    • Workaround:
      Hide

      The included patch.diff file adds the missing field if the user is really a new user and should be created on sync_users() method call. It sets the user's timecreated property as the timemodified property, that in this case are the same.

      Show
      The included patch.diff file adds the missing field if the user is really a new user and should be created on sync_users() method call. It sets the user's timecreated property as the timemodified property, that in this case are the same.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w02_MDL-30718_m23_usertimedb

      Description

      When it is run the sync_users() method, the new users created (if any) are created without having their timecreated properties registered.

        Attachments

        1. patch.diff
          0.7 kB
          Luis Gustavo Mueller de Alcantara
        2. patch2.diff
          1 kB
          Luis Gustavo Mueller de Alcantara

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              luis.alcantara Luis Gustavo Mueller de Alcantara
              Integrator:
              Aparup Banerjee
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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