зеркало из https://github.com/nextcloud/deck.git
add Order when cloning board
Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
Родитель
5aca5b4499
Коммит
8da918a6a8
|
@ -562,6 +562,11 @@ class BoardService {
|
|||
foreach ($stacks as $stack) {
|
||||
$newStack = new Stack();
|
||||
$newStack->setTitle($stack->getTitle());
|
||||
if ($stack->getOrder() == null) {
|
||||
$newStack->setOrder(999);
|
||||
} else {
|
||||
$newStack->setOrder($stack->getOrder());
|
||||
}
|
||||
$newStack->setBoardId($newBoard->getId());
|
||||
$this->stackMapper->insert($newStack);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче