View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037004 | mantisbt | filters | public | 2026-04-04 05:55 | 2026-04-10 21:03 |
| Reporter | vboctor | Assigned To | vboctor | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.28.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037004: Deleting a user doesn't delete their filters | ||||
| Description | When a user is deleted, their filters should be deleted too. | ||||
| Tags | No tags attached. | ||||
|
Deleting all of a user's personal filters is absolutely fine. I have some concerns about doing the same with global filters though. I believe those should be kept. |
|
|
I was thinking about the same thing but I decided not to at the end.
|
|
@vboctor having |
|
Exactly. I my opinion, it would be best not to delete shared filters. They can always be removed manually later on by an authorized user. |
|
|
@vboctor what about adding an entry to schema.php / $g_upgrade to delete filters where the owner does no longer exist? |
|
|
MantisBT: master bf3b3641 2026-04-04 06:02 Committer: dregad Details Diff |
Deleting a user now deletes its filters Fixes 0037004 |
Affected Issues 0037004 |
|
| mod - core/filter_api.php | Diff File | ||
| mod - core/user_api.php | Diff File | ||
|
MantisBT: master 609a4ab3 2026-04-09 20:26 Committer: dregad Details Diff |
Delete only private filters when a user is deleted. Fixes 0037004 |
Affected Issues 0037004 |
|
| mod - core/filter_api.php | Diff File | ||
|
MantisBT: master 9f205fe8 2026-04-09 20:27 Committer: dregad Details Diff |
Add delete filters when a user is deleted test cases Fixes 0037004 |
Affected Issues 0037004 |
|
| add - tests/Mantis/FilterApiTest.php | Diff File | ||
|
MantisBT: master 1fb42f9f 2026-04-09 20:37 Committer: dregad Details Diff |
Added a schema upgrade step to delete ophaned private filters Fixes 0037004 |
Affected Issues 0037004 |
|
| mod - admin/schema.php | Diff File | ||
| mod - core/install_helper_functions_api.php | Diff File | ||
|
MantisBT: master 739dcd1d 2026-04-10 20:35 Details Diff |
Replace deprecated db_prepare_bool() by query param This fixes the invalid query generated for pgsql. Fixes 0037004 |
Affected Issues 0037004 |
|
| mod - core/install_helper_functions_api.php | Diff File | ||