mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
refactored
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14032 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
1850321908
commit
0fe86ccbf4
12 files changed
+161
-93
No files matched your search
@@ -8,7 +8,6 @@ import org.kohsuke.stapler.StaplerResponse;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -116,7 +115,7 @@ public class TreeView extends View implements ViewGroup {
|
||||
public void doCreateView( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
|
||||
try {
|
||||
checkPermission(View.CREATE);
|
||||
views.add(View.create(req,rsp, this));
|
||||
views.add(View.create(req,rsp,this));
|
||||
save();
|
||||
} catch (ParseException e) {
|
||||
sendError(e,req,rsp);
|
||||
|
||||
@@ -538,7 +538,7 @@ public abstract class View extends AbstractModelObject implements AccessControll
|
||||
v.owner = owner;
|
||||
|
||||
// redirect to the config screen
|
||||
rsp.sendRedirect2("./"+v.getUrl()+v.getPostConstructLandingPage());
|
||||
rsp.sendRedirect2(req.getContextPath()+'/'+v.getUrl()+v.getPostConstructLandingPage());
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user