Commit 32d5f8dc authored by Robert Lyon's avatar Robert Lyon

Problem with getting plan tasks and versioning

Argument 1 passed to ArtefactTypeTask::get_tasks() must be an instance
of ArtefactTypePlan, string given

Change-Id: I15373b3d2cfc65bc0d167f531159560d25c06cd8
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent ead346d6
......@@ -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