Browse Source

Merge branch 'devel'

Lauri Ojansivu 7 years ago
parent
commit
dea9df2a3b
5 changed files with 13 additions and 5 deletions
  1. 9 0
      CHANGELOG.md
  2. 0 1
      models/checklists.js
  3. 1 1
      package.json
  4. 2 2
      sandstorm-pkgdef.capnp
  5. 1 1
      server/migrations.js

+ 9 - 0
CHANGELOG.md

@@ -1,3 +1,12 @@
+# v1.18 2018-07-06 Wekan release
+
+This release fixes the following bugs:
+
+- Fix [Title is required](https://github.com/wekan/wekan/issues/1576)
+  by [setting Checklist title during migration](https://github.com/wekan/wekan/issues/1753).
+
+Thanks to GitHub users centigrade-kdk and xet7 for their contributions.
+
 # v1.17 2018-07-06 Wekan release
 
 This release adds the following new features:

+ 0 - 1
models/checklists.js

@@ -7,7 +7,6 @@ Checklists.attachSchema(new SimpleSchema({
   title: {
     type: String,
     defaultValue: 'Checklist',
-    optional: true,
   },
   finishedAt: {
     type: Date,

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "wekan",
-  "version": "1.17.0",
+  "version": "1.18.0",
   "description": "The open-source Trello-like kanban",
   "private": true,
   "scripts": {

+ 2 - 2
sandstorm-pkgdef.capnp

@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
     appTitle = (defaultText = "Wekan"),
     # The name of the app as it is displayed to the user.
 
-    appVersion = 102,
+    appVersion = 103,
     # Increment this for every release.
 
-    appMarketingVersion = (defaultText = "1.17.0~2018-07-06"),
+    appMarketingVersion = (defaultText = "1.18.0~2018-07-06"),
     # Human-readable presentation of the app version.
 
     minUpgradableAppVersion = 0,

+ 1 - 1
server/migrations.js

@@ -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,