app/views/hyrax/base/_form_permission_embargo.html.erb
<%# [hyc-override] Overriding partial from gem to fix problem with editing embargos and switching admin sets %>
<div class="form-inline">
<%= visibility_badge(Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_EMBARGO) %>
<%= f.input :visibility_during_embargo, wrapper: :inline, collection: visibility_options(:restrict), include_blank: false %>
<%= f.input :embargo_release_date, wrapper: :inline, input_html: { value: f.object.embargo_release_date || Date.tomorrow, class: 'datepicker' } %>
<%= f.input :visibility_after_embargo, wrapper: :inline, collection: visibility_options(:loosen), include_blank: false %>
<%# Added here and in PR #2810 on github %>
<% if defined? f.object.admin_set_id %>
<%= f.hidden_field :admin_set_id, value: f.object.admin_set_id %>
<% end %>
<%# end of changes %>
</div>