Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix: ensure selected reimbursement type is correctly set in the form (#13254)

Dimitrios Panagkasidisf3c3d4e123f5
diff --git a/admin/app/views/spree/admin/reimbursement_types/_form.html.erb b/admin/app/views/spree/admin/reimbursement_types/_form.html.erb
index 2afa324d2c..4b16821cc8 100644
--- a/admin/app/views/spree/admin/reimbursement_types/_form.html.erb
+++ b/admin/app/views/spree/admin/reimbursement_types/_form.html.erb
@@ -7,6 +7,7 @@
Spree::ReimbursementType::KINDS.map do |kind|
[kind.demodulize.titleize, kind]
end,
+ f.object.type
),
{ include_blank: false, label: Spree.t(:type), autocomplete: true } %>