Details
-
Type:
Functional Test
-
Status:
Passed
-
Affects Version/s: Moodle 2.0
-
Fix Version/s: Moodle 2.0 QA1
-
Component/s: Assignment, Student, Teacher
-
Labels:None
Description
1. Login as student1 and submit a file for a Upload a single file assignment.
2. Login as a teacher and check that a 'View 1 submitted assignments' link is displayed on the assignment page and also the assignments index page.
3. Login as student2 and submit a file for a Upload a single file assignment.
4. Login as a teacher and check that the link now states 'View 2 submitted assignments'.
Issue Links
| This issue is blocked by: | ||||
| MDL-24106 | Database Error when grading Offline Assignments. |
|
|
|
test failed on moodle preview 4 build 201000905. error dialogue reads: error reading from database. developer debugging info as follows:
Debug info: Unknown column 'Array' in 'where clause'
SELECT u.id,u.picture,u.firstname,u.lastname,u.imagealt,u.email,
s.id AS submissionid, s.grade, s.submissioncomment,
s.timemodified, s.timemarked,
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status FROM mdl_user u LEFT JOIN mdl_assignment_submissions s ON u.id = s.userid
AND s.assignment = 1 WHERE Array AND u.id IN (4) ORDER BY lastname ASC
[array (
)]
Stack trace:
line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 732 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1289 of /mod/assignment/lib.php: call to mysqli_native_moodle_database->get_records_sql()
line 632 of /mod/assignment/lib.php: call to assignment_base->display_submissions()
line 56 of /mod/assignment/submissions.php: call to assignment_base->submissions()