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

Userid in comment is not adapted to new userid when restoring database with userentrys to another plattform

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.13, 1.9.9
    • Fix Version/s: 1.8.14, 1.9.10
    • Labels:
      None
    • Environment:
      mysql 5.0.67 php 5.2.13
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      I copy a Database with userdata (and users) to another Moodle Installation. The new Users are created and the usersid's from the records are changed to the new userids. The userid of the comments is just copied to the table 'mdl_data_comment' and because of that when I look at the comment a different persons appear as if he/she has written the comment. That's because they have the userid of the people on the the first installation.

        Gliffy Diagrams

          Activity

          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          Wow, both comments and ratings "userid" were missing remapping.

          Fixing it now. Thanks for the report! Ciao

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - Wow, both comments and ratings "userid" were missing remapping. Fixing it now. Thanks for the report! Ciao
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          It should be working ok now (applied user remapping both to data comments and ratings).

          Resolving as fixed, feel free to comment / reopen if necessary. Ciao

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - It should be working ok now (applied user remapping both to data comments and ratings). Resolving as fixed, feel free to comment / reopen if necessary. Ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Oct/10