Merge pull request #8796 from artoscinote/ma_SCI_12259

Fix serialization when creating form field values [SCI-12259]
This commit is contained in:
Martin Artnik 2025-08-14 12:08:22 +02:00 committed by GitHub
commit 12b911fa55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ class FormFieldValuesController < ApplicationController
log_form_field_value_create_activity
form_field_value_annotation if @form_field_value.is_a?(FormTextFieldValue)
render json: @form_field_value, serializer: FormFieldValueSerializer, user: current_user
render json: @form_field_value, serializer: FormFieldValueSerializer, scope: { user: current_user }
end
private