mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
- Fix Title is required by setting Checklist title
during migration. Thanks to centigrade-kdk and xet7 ! Closes #1576, closes #1753
This commit is contained in:
parent
369da1e09d
commit
7683f98b7b
2 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ Checklists.attachSchema(new SimpleSchema({
|
|||
title: {
|
||||
type: String,
|
||||
defaultValue: 'Checklist',
|
||||
optional: true,
|
||||
},
|
||||
finishedAt: {
|
||||
type: Date,
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ Migrations.add('add-checklist-items', () => {
|
|||
// Create new items
|
||||
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
|
||||
ChecklistItems.direct.insert({
|
||||
title: item.title,
|
||||
title: (item.title ? item.title : 'Checklist'),
|
||||
sort: index,
|
||||
isFinished: item.isFinished,
|
||||
checklistId: checklist._id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue