From 0f45c0e392ae90aaec5013d58b85c19f6f585e2a Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 23 Jun 2026 07:12:47 +0300 Subject: [PATCH] fix(#5122): boards report lists only active members MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removing a member from a board marks the entry isActive:false (kept in board.members for role history / re-activation), but the Admin Panel boards report listed all member entries, so removed users still showed as members. The report's userNames helper now filters to active members. The raw GET /api/boards/:boardId response intentionally still returns the full members array with isActive flags so API consumers can filter as needed. Also documents #5630 (cannot save Layout settings) and #5117 (TeX rendered both SVG and a math tag) as verified-resolved — both already fixed in current code (Layout save handler no longer reads the moved accessibility fields; math rendering migrated from markdown-it-mathjax3 to Temml/MathML). Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 14 +++++++++++++- client/components/settings/adminReports.js | 4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e872d7e5cd..a3ed6a4930 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,14 +57,26 @@ This release fixes the following bugs: throws `error-user-disabled`, and the REST `POST /api/boards/:boardId/members/:userId/add` endpoint returns HTTP 400, when the target account is disabled (re-enabling the account allows the add again). Regression in `tests/playwright/specs/17-rest-api.e2e.js`. +- [Admin Panel boards report listed removed members as current members](https://github.com/wekan/wekan/issues/5122), + [#5122](https://github.com/wekan/wekan/issues/5122): removing a member from a board marks the member entry + `isActive: false` (it is kept in `board.members` for role history / re-activation), but the Admin Panel → Reports → + Boards member column listed **all** member entries, so removed users still appeared as members. The report now + filters to active members (`isActive !== false`). (The raw `GET /api/boards/:boardId` response intentionally still + returns the full `members` array with each entry's `isActive` flag, so API consumers can filter as they need.) -and this issue is verified resolved in current code (could not reproduce / no error observed here; re-test on the +and these issues are verified resolved in current code (could not reproduce / no error observed here; re-test on the reporter's data requested): - [#5627](https://github.com/wekan/wekan/issues/5627) (rules not copied when creating a board from a template): `board.copy()` already copies the board's rules + triggers + actions (remapping `boardId` and the rule's `triggerId`/`actionId`); the report predates that code. Now covered by the #5592/#5627 copy regression in `tests/playwright/specs/17-rest-api.e2e.js` so it cannot silently regress. +- [#5630](https://github.com/wekan/wekan/issues/5630) (cannot save Admin Panel Layout settings): already fixed — the + Layout save handler had referenced form fields that were moved to the separate Accessibility settings template, + throwing before the save; the current `js-save-layout` handler no longer reads those fields. +- [#5117](https://github.com/wekan/wekan/issues/5117) (a TeX formula rendered both an SVG and a `` tag): already + fixed by migrating math rendering from `markdown-it-mathjax3` (which emitted both SVG and MathML) to **Temml**, which + outputs MathML only (`packages/markdown/src/template-integration.js`). # v9.69 2026-06-23 WeKan ® release diff --git a/client/components/settings/adminReports.js b/client/components/settings/adminReports.js index d9a600aa89..99d2623d96 100644 --- a/client/components/settings/adminReports.js +++ b/client/components/settings/adminReports.js @@ -364,6 +364,10 @@ Template.boardsReport.helpers({ }, userNames(members) { const ret = (members || []) + // #5122: removing a member from a board marks it `isActive: false` (the + // entry stays in board.members for role history / re-activation). The + // boards report must not list those removed members as current members. + .filter(_member => _member.isActive !== false) .map(_member => { const _ret = ReactiveCache.getUser(_member.userId)?.username || _member.userId; return _ret;