MDL-48778 assign: Use proper latest attempt for quickgrading prechecks
authorEric Merrill <merrill@oakland.edu>
Wed, 21 Jan 2015 14:48:15 +0000 (09:48 -0500)
committerSimey Lameze <simey@moodle.com>
Mon, 8 Feb 2016 02:34:24 +0000 (10:34 +0800)
commit002864cc370b30e7b486ac7beb2acf81a7f821aa
treec756e16799fd0810669799f64c557b32fe20b593
parent9d5d9c64ff18bd286eed49ef42dc73849f8db65f
MDL-48778 assign: Use proper latest attempt for quickgrading prechecks

The code that stored lastmodified in gradingtable used a different
method to produce it than the processor used to generate the check
value. Fix that and also check that the attempt number has not changed.
mod/assign/gradingtable.php
mod/assign/locallib.php
mod/assign/tests/events_test.php
mod/assign/tests/locallib_test.php