app/controllers/spotlight/exhibits_controller.rb in blacklight-spotlight-4.1.2 vs app/controllers/spotlight/exhibits_controller.rb in blacklight-spotlight-4.2.0

- old
+ new

@@ -32,12 +32,12 @@ end end def new build_initial_exhibit_contact_emails - add_breadcrumb t(:'spotlight.sites.home'), root_url - add_breadcrumb t(:'spotlight.exhibits.new.page_title') + add_breadcrumb(t(:'spotlight.sites.home'), root_url) + add_breadcrumb(t(:'spotlight.exhibits.new.page_title')) end def process_import if @exhibit.import(JSON.parse(import_exhibit_params.read)) && @exhibit.reindex_later(current_user) redirect_to spotlight.exhibit_dashboard_path(@exhibit), notice: t(:'helpers.submit.exhibit.updated', model: @exhibit.class.model_name.human.downcase) @@ -45,13 +45,13 @@ render action: :import end end def edit - add_breadcrumb t(:'spotlight.exhibits.breadcrumb', title: @exhibit.title), @exhibit - add_breadcrumb t(:'spotlight.configuration.sidebar.header'), exhibit_dashboard_path(@exhibit) - add_breadcrumb t(:'spotlight.configuration.sidebar.settings'), edit_exhibit_path(@exhibit) + add_breadcrumb(t(:'spotlight.exhibits.breadcrumb', title: @exhibit.title), @exhibit) + add_breadcrumb(t(:'spotlight.configuration.sidebar.header'), exhibit_dashboard_path(@exhibit)) + add_breadcrumb(t(:'spotlight.configuration.sidebar.settings'), edit_exhibit_path(@exhibit)) build_initial_exhibit_contact_emails end def create @exhibit.attributes = exhibit_params @@ -92,9 +92,10 @@ :title, :subtitle, :description, :published, :tag_list, + tag_list: [], contact_emails_attributes: %i[id email], languages_attributes: %i[id public] ) end