mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #62893
[Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
One solution:
$collectiondata=array(
// required fields
'group' => $targetGroupPlan->get('group'),
'name' => get_string('targetgroupplancollectiontitleprefix', 'artefact.plans') . $targetGroupPlan->get('title'),
'navigation' => 1,
'submittedstatus' => 0,
'lock' => 0,
'progresscompletion' => 0,
'autocopytemplate' => 0,
'template' => 0,
// optional fields
'description' => get_string('taskviewsfortemplateplan', 'artefact.plans', $targetGroupPlan->get('title')),
);
$targetTaskViewCollection = new \Collection(0, $collectiondata);
Or we can generalise it and add in the non-assigned fields in the
_construct() of Collection class
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1939364
Title:
Using plan templates throws an error on Collection creation when plan
is associated with an assigned TaskView
Status in Mahara:
In Progress
Bug description:
The only situation I've found this is when we copy a group with plans.
The functionality to duplicate a plan doesn't seem to be an option
elsewhere.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions
References