Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/Board.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public function move(
// Are we saving the changes?
if ($save) {
foreach ($affected_boards as $board_id) {
self::$loaded[$board_id]->save();
self::$loaded[$board_id]->save(Board::SAVE_DEFINITION);
}

// Ensure that the order is correct.
Expand Down Expand Up @@ -1276,12 +1276,12 @@ public static function modify(int $board_id, array &$boardOptions): void
// If we moved any boards, save their changes first.
if (!empty($moved_boards)) {
foreach (array_diff($moved_boards, [$board->id]) as $moved) {
self::$loaded[$moved]->save();
self::$loaded[$moved]->save(Board::SAVE_DEFINITION);
}
}

// We're ready to save the changes now.
$board->save();
$board->save(Board::SAVE_DEFINITION | Board::SAVE_MODS | Board::SAVE_GROUPS);

// If we were moving boards, ensure that the order is correct.
if (!empty($moved_boards)) {
Expand Down
Loading