Files
wekan/server/lib/cardScope.js
T
Lauri OjansivuandClaude Opus 4.8 300a9751e6 Fix #5623: 'select all in list' stays within its own swimlane
allCards() filtered by listId only, so list select-all selected cards across all
swimlanes of the list. Add an optional swimlaneId scope (used in swimlanes view)
so select-all is contained to the current swimlane; list-wide behavior is
preserved when there is no swimlane context. Orphan cards remain selectable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 17:45:43 +03:00

10 lines
557 B
JavaScript

// Pure, dependency-free helper for scoping "select all cards" to a swimlane
// (#5623). The implementation lives in models/lists.js (an isomorphic model
// file) so client and server share identical logic and the client build does
// not import anything from the server-only directory. This module re-exports
// the pure function at the documented test path and is itself free of any
// Meteor / Mongo / reactive-cache runtime dependency.
//
// See server/lib/tests/selectAllSwimlane.tests.js.
export { filterCardsByListAndSwimlane } from '/models/lists';