adding a new project redirects to the projects overview (because we do not retrieve the ID of the inserted project yet)

Fri, 09 Oct 2020 11:50:21 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 09 Oct 2020 11:50:21 +0200
changeset 118
d3583959c875
parent 117
874ff787949b
child 119
9970690a1e42

adding a new project redirects to the projects overview (because we do not retrieve the ID of the inserted project yet)

src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java	Fri Oct 09 11:46:10 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java	Fri Oct 09 11:50:21 2020 +0200
@@ -164,7 +164,7 @@
 
             dao.getProjectDao().saveOrUpdate(project);
 
-            setRedirectLocation(req, "./projects/versions?pid="+project.getId());
+            setRedirectLocation(req, "./projects/");
             setContentPage(req, Constants.JSP_COMMIT_SUCCESSFUL);
             LOG.debug("Successfully updated project {}", project.getName());
 

mercurial