From cb02009ecd14622d1da727dfd92cf5d325f08c6b Mon Sep 17 00:00:00 2001 From: Vojtech Juranek Date: Tue, 10 Jul 2012 16:01:40 +0200 Subject: [PATCH] Update transient action after config submit, as trantient action may change due to change of view properties. --- core/src/main/java/hudson/model/View.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/hudson/model/View.java b/core/src/main/java/hudson/model/View.java index 9c4de2b762..f44b056867 100644 --- a/core/src/main/java/hudson/model/View.java +++ b/core/src/main/java/hudson/model/View.java @@ -490,6 +490,10 @@ public abstract class View extends AbstractModelObject implements AccessControll return result; } + public synchronized void updateTransientActions() { + transientActions = TransientViewActionFactory.createAllFor(this); + } + public Object getDynamic(String token) { for (Action a : getActions()) { String url = a.getUrlName(); @@ -768,6 +772,7 @@ public abstract class View extends AbstractModelObject implements AccessControll rename(req.getParameter("name")); getProperties().rebuild(req, req.getSubmittedForm(), getApplicablePropertyDescriptors()); + updateTransientActions(); save();