From 26ba128217f9ce241ab7aea9373487f8d40075b8 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 16 Sep 2019 13:17:12 +0100 Subject: [PATCH] Set the initial value of the choice field to the default value. --- src/jalview/ws/slivkaws/SlivkaParamSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/ws/slivkaws/SlivkaParamSet.java b/src/jalview/ws/slivkaws/SlivkaParamSet.java index 7a55832..ed4dbd2 100644 --- a/src/jalview/ws/slivkaws/SlivkaParamSet.java +++ b/src/jalview/ws/slivkaws/SlivkaParamSet.java @@ -67,7 +67,7 @@ public class SlivkaParamSet implements WsParamSetI ChoiceField choiceField = (ChoiceField) field; List choices = new ArrayList<>(choiceField.getChoices()); arg = new StringParameter(field.getName(), field.getDescription(), - field.isRequired(), choiceField.getDefault(), choices.get(0), + field.isRequired(), choiceField.getDefault(), choiceField.getDefault(), choices, choices ); break; -- 1.7.10.2