diff --git a/app/controllers/madmp_fragments_controller.rb b/app/controllers/madmp_fragments_controller.rb index 4c817ce..4061b10 100644 --- a/app/controllers/madmp_fragments_controller.rb +++ b/app/controllers/madmp_fragments_controller.rb @@ -112,7 +112,7 @@ @parent_fragment = MadmpFragment.find(params[:parent_id]) @classname = @schema.classname @readonly = false - @templateLocale = params[:template_locale] + @template_locale = params[:template_locale] @fragment = nil dmp_id = @parent_fragment.classname == "dmp" ? @parent_fragment.id : @parent_fragment.dmp_id @@ -137,7 +137,7 @@ @classname = @fragment.classname @parent_fragment = @fragment.parent @readonly = true - @templateLocale = params[:template_locale] + @template_locale = params[:template_locale] authorize @fragment respond_to do |format| diff --git a/app/views/branded/shared/dynamic_form/_modal.html.erb b/app/views/branded/shared/dynamic_form/_modal.html.erb index c7ce683..1591acc 100644 --- a/app/views/branded/shared/dynamic_form/_modal.html.erb +++ b/app/views/branded/shared/dynamic_form/_modal.html.erb @@ -12,7 +12,7 @@ <%= f.hidden_field :parent_id, id: nil %> <%= f.hidden_field :id, id: nil %> <%= f.hidden_field :schema_id, :value => @schema.id, id: nil%> - <%= f.hidden_field :template_locale, :value => @templateLocale, id: nil%> + <%= f.hidden_field :template_locale, :value => @template_locale, id: nil%> <%= f.hidden_field "source", :value => "modal" %>