When exporting multiple roles at one time, the array produced repeats $roles['role'] multiple times. When importing these, since the array key 'role' is overwritten multiple times, the module only imports the last role in in the list. I believe that when the dump is created, the array key should increment. something like $role[0] then $role[1] so when the foreach loop in the import function runs, it will process all of the roles provided.

Comments

  • devendra.yadav committed 509575e on 7.x-1.x
    Issue #2390705 by morseCode: Import one one role out of multiple roles.
    
devd’s picture

Version: 7.x-1.0-rc2 » 7.x-1.0-rc3
Status: Active » Closed (fixed)

Thanks Morse,

To acknowledge this isue. I have fixed this under the tag release 7.x-1.0-rc3. If you any issue, Feel free to conact me directally.

dbcurtis’s picture

I think that 7.x-1.0-rc3 did not fully fix the problem.
Here is what happens to me.
1) I restore the data base from a clean backup
2) Try to import 4 Roles and permissions (only one is recognized)
3) Try to import the same 4 again and they are are recognized.