Skip to content

Commit 3eac34b

Browse files
committed
Fixed bug showing archived projects
1 parent 2fa5f1f commit 3eac34b

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/java/de/OneManProjects/database/Projects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static Project getAllUserTrackedMinutesForGroupProject(final ResultSet rs) throw
9090
public static List<Project> getProjects(final int refId, final boolean all) throws SQLException {
9191
return Database.executeQueryList(
9292
"SELECT id,ref,refType,title,description,color,archived FROM "+ Database.PROJECT_TABLE +
93-
" WHERE reftype = '" + RefType.USER + "' AND ref = ?",
93+
" WHERE reftype = '" + RefType.USER + "' AND ref = ?" + (all? "" : " AND archived = false"),
9494
Projects::parseProject,
9595
refId
9696
);

src/main/ui/package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react-big-calendar": "^1.19.4",
1919
"react-circular-progressbar": "^2.2.0",
2020
"react-dom": "^19.2.3",
21-
"react-router": "^7.10.1",
21+
"react-router": "^7.12.0",
2222
"react-select": "^5.10.2",
2323
"react-toastify": "^11.0.5",
2424
"recharts": "^3.5.1",

0 commit comments

Comments
 (0)