diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index 15e37fa..68d87e9 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -8,6 +8,7 @@ <% if @document.supplemental == true %> <%= f.input :usage, label: "Document type", collection: Document.usages.keys.map(&:to_sym), required: true %> <% else %> + <%= f.hidden_field :supplemental, value: @document.supplemental %> <%= f.hidden_field :usage, value: :thesis %> <% end %>