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 Bug
    • Status: Closed
    • Priority: Blocker 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
    • Rank:
      27243

      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.

        Activity

        Katja Krüger created issue -
        Hide
        Eloy Lafuente (stronk7) added a comment -

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

        Fixing it now. Thanks for the report! Ciao

        Show
        Eloy Lafuente (stronk7) added a comment - Wow, both comments and ratings "userid" were missing remapping. Fixing it now. Thanks for the report! Ciao
        Eloy Lafuente (stronk7) made changes -
        Field Original Value New Value
        Fix Version/s 1.8.14 [ 10411 ]
        Fix Version/s 1.9.10 [ 10407 ]
        Affects Version/s 1.8.13 [ 10406 ]
        Affects Version/s 1.9.8 [ 10400 ]
        Affects Version/s 1.9.7 [ 10360 ]
        Affects Version/s 1.9.6 [ 10340 ]
        Priority Major [ 3 ] Blocker [ 1 ]
        Hide
        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
        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
        Eloy Lafuente (stronk7) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Martin Dougiamas made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        QA Assignee nobody
        Martin Dougiamas made changes -
        Workflow jira [ 38648 ] MDL Workflow [ 65538 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 65538 ] MDL Full Workflow [ 94877 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: