From cf25d8213cee3bd984da089e471a3af9ca2a54b0 Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Sat, 30 May 2026 08:21:57 -0700 Subject: [PATCH] [3.0] Saving or moving boards removed stats --- Sources/Board.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Board.php b/Sources/Board.php index 9bece3d294..6cc705c9c4 100644 --- a/Sources/Board.php +++ b/Sources/Board.php @@ -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. @@ -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)) {