mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 05:08:48 +01:00
Use a Meteor call to copy a board
The current method was to copy a board on the client side. But not all data was available for copying rules. Moving the copy function to the server side solves this problem.
This commit is contained in:
parent
1c7a9e4de8
commit
ff8a36653a
3 changed files with 30 additions and 6 deletions
|
|
@ -508,6 +508,7 @@ Boards.helpers({
|
|||
copy() {
|
||||
const oldId = this._id;
|
||||
delete this._id;
|
||||
delete this.slug;
|
||||
const _id = Boards.insert(this);
|
||||
|
||||
// Copy all swimlanes in board
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue