[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Changed in: mahara Status: Fix Committed => Fix Released -- 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: Fix Released 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Changed in: mahara Status: In Progress => Fix Committed -- 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: Fix Committed 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Changed in: mahara Status: Confirmed => In Progress -- 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Changed in: mahara Status: Incomplete => Confirmed -- 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: Confirmed 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Changed in: mahara Milestone: 22.04.0 => 22.10.0 -- 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: Incomplete 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Changed in: mahara Status: In Progress => Incomplete ** Changed in: mahara Milestone: 21.10.0 => 22.04.0 -- 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: Incomplete 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1939364] Re: Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
** Description changed: 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. + + Create a plan template. + Set it as a template with assignment tasks on. + Create a task for that plan template, attaching a collection etc. + Create a new plan from the template in a group. + Submit without changing anything. + Error is thrown. + + + 1. Create a page. + 2. Create a group and add five members. + 3. Create a personal plan with these settings: + 1. Assignment tasks (Yes). + 2. Template (Yes). + 4. Create a task for the plan with these settings: + 1. Select your a page to be the ‘Task page’. + 5. In your group, create a new plan from your personal plan template. + 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. + 7. Press save. -- 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. Create a plan template. Set it as a template with assignment tasks on. Create a task for that plan template, attaching a collection etc. Create a new plan from the template in a group. Submit without changing anything. Error is thrown. 1. Create a page. 2. Create a group and add five members. 3. Create a personal plan with these settings: 1. Assignment tasks (Yes). 2. Template (Yes). 4. Create a task for the plan with these settings: 1. Select your a page to be the ‘Task page’. 5. In your group, create a new plan from your personal plan template. 6. Check that once the template is applied, ‘Assignment tasks’ setting is ‘Yes’. 7. Press save. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1939364/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [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 ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp