Spin-off from #935062: Change role id to machine name
No code in Drupal should use those magic numbers.
This should be backported.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal-1600892-3.patch | 8.23 KB | tim.plunkett |
| drupal8.role-ids.0.patch | 7.87 KB | sun |
Spin-off from #935062: Change role id to machine name
No code in Drupal should use those magic numbers.
This should be backported.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal-1600892-3.patch | 8.23 KB | tim.plunkett |
| drupal8.role-ids.0.patch | 7.87 KB | sun |
Comments
Comment #1
webchickLooks good. In a cursory grep for 'roles\[' I didn't catch any others.
Comment #2
dries commentedCommitted to 8.x. Moving to 7.x.
Comment #3
tim.plunkettRerolled.
Comment #4
sunThanks!
Comment #5
David_Rothstein commentedCommitted to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/bbe4b34
A little odd we're saying that the role ID is supposed to be a string, although in practice I suppose the calling code does tend to pass (numeric) strings to it rather than integers.