[PR #2065] [MERGED] fix: prevent saved filter error when viewing Favorites #9745

Closed
opened 2026-04-23 09:11:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2065
Author: @kolaente
Created: 1/8/2026
Status: Merged
Merged: 1/8/2026
Merged by: @kolaente

Base: mainHead: fix/2058-favorites-filter-error


📝 Commits (1)

  • fac0c58 fix: prevent saved filter error when viewing Favorites

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 frontend/src/components/project/views/ProjectKanban.vue (+1 -1)
📝 frontend/src/components/project/views/ProjectList.vue (+1 -1)

📄 Description

Summary

  • Fixes the "The saved filter does not exist" error when clicking on Favorites in the sidebar
  • The issue occurred because the code assumed any negative projectId was a saved filter, but Favorites has ID -1 while saved filters start at ID -2
  • Changed the condition from projectId < 0 to projectId <= -2 in both ProjectList.vue and ProjectKanban.vue

Fixes #2058

Test plan

  • Log in to Vikunja
  • Create a task and mark it as favorite
  • Click on "Favorites" in the sidebar
  • Verify no error notification appears
  • Verify tasks are displayed correctly
  • Switch between List, Gantt, and Table views - no errors should appear
  • Navigate to an actual saved filter (if any exist) - should still work correctly

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2065 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix/2058-favorites-filter-error` --- ### 📝 Commits (1) - [`fac0c58`](https://github.com/go-vikunja/vikunja/commit/fac0c5892aa900ab295c44aa16b95f9ba5003e3c) fix: prevent saved filter error when viewing Favorites ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/project/views/ProjectKanban.vue` (+1 -1) 📝 `frontend/src/components/project/views/ProjectList.vue` (+1 -1) </details> ### 📄 Description ## Summary - Fixes the "The saved filter does not exist" error when clicking on Favorites in the sidebar - The issue occurred because the code assumed any negative projectId was a saved filter, but Favorites has ID -1 while saved filters start at ID -2 - Changed the condition from `projectId < 0` to `projectId <= -2` in both ProjectList.vue and ProjectKanban.vue Fixes #2058 ## Test plan - [ ] Log in to Vikunja - [ ] Create a task and mark it as favorite - [ ] Click on "Favorites" in the sidebar - [ ] Verify no error notification appears - [ ] Verify tasks are displayed correctly - [ ] Switch between List, Gantt, and Table views - no errors should appear - [ ] Navigate to an actual saved filter (if any exist) - should still work correctly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 09:11:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#9745