Skip to content

Commit

Permalink
MBS-8974: Fix repeating cards for autoclose columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed May 24, 2024
1 parent 3b6f646 commit 80cae9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/boardmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ public function move_card(int $cardid, int $aftercard, int $columnid = 0): void
// If target column has autoclose option set, update card to be completed.
$options = json_decode($targetcolumn->options);
if (!empty($options->autoclose)) {
$updatecard['completed'] = 1;
if ($card['completed']) {
self::set_card_complete($cardid, 1);
}
}
$DB->update_record('kanban_card', $updatecard);
// When inplace editing the title and moving the card happens quite fast in a row,
Expand Down

0 comments on commit 80cae9f

Please sign in to comment.