Commit 824bf9a3 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Problem with getting plan tasks and versioning"

parents 600ea3de 32d5f8dc
......@@ -225,7 +225,7 @@ class PluginBlocktypePlans extends MaharaCoreBlocktype {
foreach ($configdata['artefactids'] as $planid) {
$plan = artefact_instance_from_id($planid);
$tasks = ArtefactTypeTask::get_tasks($planid, 0, 0);
$tasks = ArtefactTypeTask::get_tasks($plan, 0, 0);
$artefacts[$planid]['tasks'] = $tasks;
$artefacts[$planid]['title'] = $plan->get('title');
$artefacts[$planid]['description'] = $plan->get('description');
......
......@@ -84,8 +84,8 @@ Scenario: Check that plan blocks on timeline are not automatically updated when
Then I should see " New task"
When I fill in the following:
| Title | New Space Task |
| Completion date | 2019/01/01 |
| Description | Space Task - hold breath for a really long time |
And I fill in "Completion date" with "tomorrow" date in the format "Y/m/d"
And I enable the switch "Completed"
And I press "Save task"
# confirm user taken back to Plan block on page and new task is displayed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment