[Fix Adding Labels to cards is not possible anymore](https://github.com/wekan/wekan/issues/2223).

Thanks to xet7 !

Closes #2223
This commit is contained in:
Lauri Ojansivu 2019-03-04 12:04:12 +02:00
parent 0b64a46bdc
commit 763cf81c97
5 changed files with 98 additions and 42 deletions

View file

@ -16,8 +16,9 @@ Meteor.methods({
check(description, String);
check(params, Object);
// label activity did not work yet, see wekan/models/activities.js
const quoteParams = _.clone(params);
['card', 'list', 'oldList', 'board', 'oldBoard', 'comment', 'checklist', 'label', 'swimlane', 'oldSwimlane'].forEach((key) => {
['card', 'list', 'oldList', 'board', 'oldBoard', 'comment', 'checklist', 'swimlane', 'oldSwimlane'].forEach((key) => {
if (quoteParams[key]) quoteParams[key] = `"${params[key]}"`;
});