diff --git a/api/app/helpers/spree/api/api_helpers.rb b/api/app/helpers/spree/api/api_helpers.rb index 67879863f00..b66ecad3280 100644 --- a/api/app/helpers/spree/api/api_helpers.rb +++ b/api/app/helpers/spree/api/api_helpers.rb @@ -28,7 +28,7 @@ def image_attributes end def option_value_attributes - [:id, :name, :presentation, :option_type_name, :option_type_id] + [:id, :name, :presentation, :option_type_name, :option_type_id, :option_type_presentation] end def order_attributes diff --git a/api/app/models/spree/option_value_decorator.rb b/api/app/models/spree/option_value_decorator.rb index 90a6c76cc94..b211890e810 100644 --- a/api/app/models/spree/option_value_decorator.rb +++ b/api/app/models/spree/option_value_decorator.rb @@ -2,4 +2,8 @@ def option_type_name option_type.name end + + def option_type_presentation + option_type.presentation + end end