MDL-51905 block_activity_results: Default to the current activity
commit161ffc5605c32e24858d409d40122b56f1cb1283
authorJohn Okely <john@moodle.com>
Mon, 26 Oct 2015 09:11:57 +0000 (26 17:11 +0800)
committerJohn Okely <john@moodle.com>
Tue, 27 Oct 2015 05:47:58 +0000 (27 13:47 +0800)
tree63fc84d7990f80be143ca40014e08a30a8313c4a
parent9382ac38d60bee1226e3ba13906770552bea6012
MDL-51905 block_activity_results: Default to the current activity

Due to an incorrect condition, the activity results block would
incorrectly identify some blocks as not being gradeable.
This meant that edit form could not determine what activity the block
was added to. This commit fixes the condition, allowing the current
block to be determined correctly
blocks/activity_results/block_activity_results.php
blocks/activity_results/tests/behat/addblockinactivity.feature