From 0568ad514de1d1cea44325a9d31c9d5872087a92 Mon Sep 17 00:00:00 2001 From: Rahul Singh <81744029+rahul2103@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:37:49 +0530 Subject: [PATCH] product properties bug fix --- app/controllers/spree/admin/product_properties_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/spree/admin/product_properties_controller.rb b/app/controllers/spree/admin/product_properties_controller.rb index cad347b7c1..40b65c6edb 100644 --- a/app/controllers/spree/admin/product_properties_controller.rb +++ b/app/controllers/spree/admin/product_properties_controller.rb @@ -12,6 +12,8 @@ def find_properties end def setup_property + return if @product.product_properties.any? + @product.product_properties.build end end