Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix[Op#50737]: Mark provider type select as readonly after storage selection

Kabiru Mwenja8051a18d3c13
diff --git a/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb
index dce5a61399d..eb635a067dc 100644
--- a/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb
+++ b/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb
@@ -11,7 +11,7 @@
Storages::Admin::ProviderTypeSelectForm.new(
form,
storage:,
- select_list_options: { caption: provider_type_select_caption }
+ select_list_options: { caption: provider_type_select_caption, readonly: storage.new_record? }
)
)
end