@@ 79-87 (lines=9) @@ | ||
76 | } |
|
77 | ||
78 | $last_column_states = []; |
|
79 | if ($board && isset($board->columns)) { |
|
80 | $board_columns = $board->columns; |
|
81 | $last_column = array_pop($board_columns) ?: []; |
|
82 | if ($last_column && isset($last_column['states']) && $last_column['states']) { |
|
83 | $last_column_states = $last_column['states']; |
|
84 | } |
|
85 | } |
|
86 | ||
87 | $query->where( |
|
88 | function ($query) use ($last_column_states, $active_sprint_issues) { |
|
89 | $query->whereRaw([ 'state' => [ '$nin' => $last_column_states ] ])->orWhereIn('no', $active_sprint_issues); |
|
90 | } |
@@ 435-443 (lines=9) @@ | ||
432 | // remaining start |
|
433 | $last_column_states = []; |
|
434 | $board = Board::find($kanban_id); |
|
435 | if ($board && isset($board->columns)) { |
|
436 | $board_columns = $board->columns; |
|
437 | $last_column = array_pop($board_columns) ?: []; |
|
438 | if ($last_column && isset($last_column['states']) && $last_column['states']) { |
|
439 | $last_column_states = $last_column['states']; |
|
440 | } |
|
441 | } |
|
442 | return $last_column_states; |
|
443 | } |
|
444 | ||
445 | /** |
|
446 | * get sprint original state. |