Issue Details (XML | Word | Printable)

Key: MDL-16701
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Eloy Lafuente (stronk7)
Reporter: Tim Hunt
Votes: 3
Watchers: 7
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Bulk user enrol hard-codes the student role id as 5 and incorrectly shows teachers as enrolled

Created: 26/Sep/08 04:11 PM   Updated: 03/Mar/09 08:10 AM
Return to search
Component/s: Administration
Affects Version/s: 2.0
Fix Version/s: 2.0

Issue Links:
Dependency
 
Relates
 

Participants: Anthony Borrow, Eloy Lafuente (stronk7) and Tim Hunt
Security Level: None
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
This was checked in as MDL-15449.

This is BAD. The code should look for the role in the database according to some condition, for example shortname = 'student' or having capability legacy/student, with appropriate error handling.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt made changes - 26/Sep/08 04:12 PM
Field Original Value New Value
Link This issue blocks MDL-15449 [ MDL-15449 ]
Tim Hunt made changes - 26/Sep/08 04:13 PM
Link This issue blocks MDL-15449 [ MDL-15449 ]
Tim Hunt made changes - 26/Sep/08 04:13 PM
Link This issue has a non-specific relationship to MDL-15449 [ MDL-15449 ]
Tim Hunt made changes - 26/Sep/08 04:20 PM
Summary Bulk user enrol hard-codes the student role id as 5 Bulk user enrol hard-codes the student role id as 5 and incorrectly shows teachers as enrolled
Artem Andreev made changes - 08/Oct/08 03:36 PM
Link This issue will be resolved by MDL-16793 [ MDL-16793 ]