From: Mateusz Warowny Date: Mon, 16 Sep 2019 12:17:12 +0000 (+0100) Subject: Set the initial value of the choice field to the default value. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=26ba128217f9ce241ab7aea9373487f8d40075b8;p=jalview.git Set the initial value of the choice field to the default value. --- 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;