From: MMWarowny Date: Thu, 5 Dec 2019 16:30:45 +0000 (+0000) Subject: JAL-3066 Comment on ambiguous parameter parsing. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9ab08b1a8e5b2b05788d880985748b3df544cc3e;p=jalview.git JAL-3066 Comment on ambiguous parameter parsing. --- diff --git a/src/jalview/ws/slivkaws/SlivkaWSInstance.java b/src/jalview/ws/slivkaws/SlivkaWSInstance.java index 8a42982..952aab6 100644 --- a/src/jalview/ws/slivkaws/SlivkaWSInstance.java +++ b/src/jalview/ws/slivkaws/SlivkaWSInstance.java @@ -93,6 +93,8 @@ public abstract class SlivkaWSInstance extends ServiceWithParameters { for (ArgumentI arg : args) { + // multiple choice field names are name$number to avoid duplications + // the number is stripped here String fieldName = arg.getName().split("\\$", 2)[0]; FormField field = form.getField(fieldName); if (field.getType() == FieldType.BOOLEAN)