Closed (duplicate)
Project:
Install Profile API (obsolete)
Version:
5.x-1.1
Component:
Profile Wizard
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2008 at 08:13 UTC
Updated:
12 Dec 2008 at 22:11 UTC
After creating user roles, the install profile script for creating users and assigning their user roles holds a bug. For each user the script reads:
install_add_user('test user', 'd8978cf127206b727c14e3ce91b90a0b', 'testuser@testsite.com', array (
0 => 'test user role',
), 1);
The "0" in the second line should actually be the rid of 'test user role'. This should be replaced by:
$role_id['test user role'] => 'test user role',
Comments
Comment #1
quicksketchCould you provide this change in patch format? I'm not sure what you're recommending. http://drupal.org/patch/create
Comment #2
dww#174323: Let install_add_user accept array of role names (which is already fixed in the 6.x-1.x-dev and 5.x-2.0-beta1 releases).