From 3e5827049ff5dae3ede2bd46666afdc31967a4bd Mon Sep 17 00:00:00 2001 From: Rob Kaufman Date: Thu, 7 Nov 2024 20:28:40 -0800 Subject: [PATCH] banner skipping from hyrax --- .../transactions/steps/save_collection_banner_decorator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hyrax/transactions/steps/save_collection_banner_decorator.rb b/lib/hyrax/transactions/steps/save_collection_banner_decorator.rb index ef487e7d6..40987d6b7 100644 --- a/lib/hyrax/transactions/steps/save_collection_banner_decorator.rb +++ b/lib/hyrax/transactions/steps/save_collection_banner_decorator.rb @@ -8,7 +8,8 @@ module Steps module SaveCollectionBannerDecorator include Hyku::CollectionBrandingBehavior - def call(collection_resource, update_banner_file_ids: nil, alttext: nil) + def call(collection_resource, update_banner_file_ids: nil, alttext: nil, banner_unchanged_indicator: true) + return Success(collection_resource) if ActiveModel::Type::Boolean.new.cast(banner_unchanged_indicator) collection_id = collection_resource.id.to_s process_banner_input(collection_id:, update_banner_file_ids:, alttext:) Success(collection_resource)