diff --git a/web/web_support/src/main/java/com/intuit/tank/project/WorkloadScripts.java b/web/web_support/src/main/java/com/intuit/tank/project/WorkloadScripts.java index 52ce30862..477b191e1 100644 --- a/web/web_support/src/main/java/com/intuit/tank/project/WorkloadScripts.java +++ b/web/web_support/src/main/java/com/intuit/tank/project/WorkloadScripts.java @@ -110,12 +110,10 @@ public void setCurrentScriptGroup(ScriptGroup currentScriptGroup) { public void initCurrentGroup() { currentScriptGroup = new ScriptGroup(); currentScriptGroup.setLoop(1); - this.insertIndex = -1; - Map params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); - String param = params.get("insertIndex"); - if (param != null && NumberUtils.isCreatable(param)) { - insertIndex = Integer.parseInt(param); - } + } + + public void setInsertIndex(int rowIndex) { + this.insertIndex = rowIndex; } /** @@ -152,7 +150,7 @@ public void addScriptGroup() { if ("