app/commands/decidim/conferences/admin/update_conference.rb in decidim-conferences-0.22.0 vs app/commands/decidim/conferences/admin/update_conference.rb in decidim-conferences-0.23.0

- old
+ new

@@ -79,16 +79,23 @@ short_description: form.short_description, objectives: form.objectives, location: form.location, start_date: form.start_date, end_date: form.end_date, - hero_image: form.hero_image, - banner_image: form.banner_image, promoted: form.promoted, scopes_enabled: form.scopes_enabled, scope: form.scope, show_statistics: form.show_statistics - } + }.merge(uploader_attributes) + end + + def uploader_attributes + { + hero_image: form.hero_image, + remove_hero_image: form.remove_hero_image, + banner_image: form.banner_image, + remove_banner_image: form.remove_banner_image + }.delete_if { |_k, val| val.is_a?(Decidim::ApplicationUploader) } end def send_notification_registrations_enabled Decidim::EventsManager.publish( event: "decidim.events.conferences.registrations_enabled",