Update transient action after config submit, as trantient action may change due to change of view properties.

This commit is contained in:
Vojtech Juranek authored and Kohsuke Kawaguchi committed 2012-07-31 16:30:11 +09:00
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();