19321: Use the correct enum value for cwl inputs 19321-wb1-enum
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 4 Aug 2022 14:11:35 +0000 (10:11 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 4 Aug 2022 14:11:35 +0000 (10:11 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

apps/workbench/app/helpers/application_helper.rb

index f22ab50166591cb0875f32bfdba368af42e91fc3..697c469b563f3553f83c15a1089c0f96745d6b48 100644 (file)
@@ -564,7 +564,7 @@ module ApplicationHelper
                      "data-emptytext" => "none",
                      "data-placement" => "bottom",
                      "data-type" => "select",
-                     "data-source" => (opt_empty_selection + primary_type[:symbols].map {|i| {:value => i, :text => i} }).to_json,
+                     "data-source" => (opt_empty_selection + primary_type[:symbols].map {|i| {:value => cwl_shortname(i), :text => cwl_shortname(i)} }).to_json,
                      "data-url" => url_for(action: "update", id: object.uuid, controller: object.class.to_s.pluralize.underscore, merge: true),
                      "data-title" => "Set value for #{cwl_shortname(input_schema[:id])}",
                      "data-name" => dn,