mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
Update transient action after config submit, as trantient action may change due to change of view properties.
This commit is contained in:
1 parent
2e8cc7438e
commit
cb02009ecd
1 file changed
+5
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user