Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.8
-
MOODLE_28_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-47657-master -
Description
- Create a glossary activity
- Ensure the "Always allow editing" setting is set to No
- Leave other settings as defaults
- Login as a student
- Access the glossary.
- Add a new entry with a Concept and Definition
- Click the 'Save changes' button.
- Stay on the Glossary view page (which should show the editing icon) and wait 30min (or less if you can reduce $CFG->maxeditingtime)
- Try editing the entry.
Expected result: The user should be shown a timeout error.
Actual result: An error about the user not being able to edit other's entries is shown.
You cannot edit other people's entries.
|
|
More information about this error
|
Debug info:
|
Error code: errcannoteditothers
|
Stack trace:
|
|
line 463 of /lib/setuplib.php: moodle_exception thrown
|
line 44 of /mod/glossary/edit.php: call to print_error()
|
|
Output buffer: Notice: Undefined variable: fromdb in /var/www/vhosts/qa.moodle.net/html/mod/glossary/edit.php on line 43 Notice: Trying to get property of non-object in /var/www/vhosts/qa.moodle.net/html/mod/glossary/edit.php on line 43
|
The problem is that there is an incorrect variable name used on line 44...
if ($USER->id != $fromdb->userid) {
|
...which should be...
if ($USER->id != $entry->userid) {
|
Attachments
Issue Links
- blocks
-
MDLQA-7189 CLONE - In a glossary activity, students can add entries including attaching files
-
- Passed
-