mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Add source field to imported attachments
We use this field to prevent adding attachments' related activities automatically only. Then this field will be removed.
This commit is contained in:
parent
4ad4c6ea22
commit
6ff0cf91e2
3 changed files with 26 additions and 8 deletions
|
@ -313,6 +313,9 @@ export class WekanCreator {
|
|||
file.boardId = boardId;
|
||||
file.cardId = cardId;
|
||||
file.userId = this._user(att.userId);
|
||||
// The field source will only be used to prevent adding
|
||||
// attachments' related activities automatically
|
||||
file.source = 'import';
|
||||
if (error) {
|
||||
throw(error);
|
||||
} else {
|
||||
|
@ -332,6 +335,9 @@ export class WekanCreator {
|
|||
file.boardId = boardId;
|
||||
file.cardId = cardId;
|
||||
file.userId = this._user(att.userId);
|
||||
// The field source will only be used to prevent adding
|
||||
// attachments' related activities automatically
|
||||
file.source = 'import';
|
||||
if (error) {
|
||||
throw(error);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue