diff --git a/source/java/org/alfresco/repo/jscript/ScriptAction.java b/source/java/org/alfresco/repo/jscript/ScriptAction.java index a3e287b623..be8de7d219 100644 --- a/source/java/org/alfresco/repo/jscript/ScriptAction.java +++ b/source/java/org/alfresco/repo/jscript/ScriptAction.java @@ -151,6 +151,9 @@ public final class ScriptAction implements Serializable, Scopeable } services.getActionService().executeAction(action, node.getNodeRef()); + // Parameters may have been updated by action execution, so reset cache + this.parameters = null; + // Reset the actioned upon node node.reset(); } @@ -178,6 +181,9 @@ public final class ScriptAction implements Serializable, Scopeable } } services.getActionService().executeAction(action, nodeRef); + + // Parameters may have been updated by action execution, so reset cache + this.parameters = null; } /**