From 66149659ca527dd9478d99eecc4df30248575bb4 Mon Sep 17 00:00:00 2001 From: Yannick Schaus Date: Thu, 20 May 2021 20:39:32 +0200 Subject: [PATCH] [automation] Remove readOnly flag on script type parameter (#2373) Not sure if there's a good rationale behind it being read-only (maybe because it's not supposed to change after having been set) but removing it will fix https://github.com/openhab/openhab-webui/issues/1061. Signed-off-by: Yannick Schaus --- .../script/internal/provider/ScriptModuleTypeProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java b/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java index dcc8fe8f72..e72ba3202d 100755 --- a/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java @@ -107,7 +107,7 @@ public class ScriptModuleTypeProvider implements ModuleTypeProvider { parameterOptionsList.add(new ParameterOption(entry.getKey(), entry.getValue())); } final ConfigDescriptionParameter scriptType = ConfigDescriptionParameterBuilder.create("type", Type.TEXT) - .withRequired(true).withReadOnly(true).withMultiple(false).withLabel("Script Type") + .withRequired(true).withMultiple(false).withLabel("Script Type") .withDescription("the scripting language used").withOptions(parameterOptionsList) .withLimitToOptions(true).build(); final ConfigDescriptionParameter script = ConfigDescriptionParameterBuilder.create("script", Type.TEXT)