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

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

    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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

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