Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Apr 11, 2024
1 parent bdebf48 commit 010dad2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/boardmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,12 +966,12 @@ public function update_card(int $cardid, array $data): void {
}
$assignees = [];

$column = $this->get_column($cardupdate['kanban_column']);
$column = $this->get_column($card['kanban_column']);
$options = json_decode($column->options);
$wiplimit = $options->wiplimit ?? 0;

if ($wiplimit > 0) {
self::check_wiplimit($cardupdate['kanban_column'], $cardid, $wiplimit, $toinsert);
self::check_wiplimit($card['kanban_column'], $cardid, $wiplimit, $toinsert);
}

foreach ($toinsert as $assignee) {
Expand Down
5 changes: 5 additions & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ function xmldb_kanban_upgrade($oldversion) {
$table = new xmldb_table('kanban_card');
$field = new xmldb_field('repeat_enable', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, '0', 'timemodified');

// Conditionally launch add field repeat_enable.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

// Conditionally launch add field repeat_enable.
$field = new xmldb_field('repeat_interval', XMLDB_TYPE_INTEGER, '11', null, XMLDB_NOTNULL, null, '0', 'repeat_enable');

Expand Down

0 comments on commit 010dad2

Please sign in to comment.