Using plan templates throws an error on Collection creation when plan is associated with an assigned TaskView
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Doris Tam |
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.
Changed in mahara: | |
importance: | Undecided → Medium |
milestone: | none → 21.10.0 |
status: | New → In Progress |
description: | updated |
Changed in mahara: | |
status: | In Progress → Incomplete |
milestone: | 21.10.0 → 22.04.0 |
Changed in mahara: | |
milestone: | 22.04.0 → 22.10.0 |
Changed in mahara: | |
status: | Incomplete → Confirmed |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
# Failed template plan
1. Make a personal plan, give it a title, template (yes), and assignment tasks (yes).
2. Create a task for that plan and assign it a task page.
3. Go group plans and create a new plan based on that template.
4. Error.
This is due to plan tasks auto-creating a collection where recently we have updated the table constraints for the 'collections' table in the database and the new fields with non-null constraints are not all given a value. e.g. autotemplate, template, navigation etc.