Skip to content

Commit bbab1a6

Browse files
committed
Merge branch '0.31-backports' of github.com:openpoke/decidim into 0.31-backports
2 parents 0781848 + 059648c commit bbab1a6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

decidim-assemblies/app/serializers/decidim/assemblies/assembly_importer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def import_folders_and_attachments(attachments)
109109
end
110110
end
111111

112-
unless attachments["attachment_collections"].empty?
113-
attachments["attachment_collections"].map do |collection|
112+
unless attachments["attachment_collections"].blank?
113+
attachments["attachment_collections"]&.map do |collection|
114114
Decidim.traceability.perform_action!("create", AttachmentCollection, @user) do
115115
create_attachment_collection(collection)
116116
end

decidim-participatory_processes/app/serializers/decidim/participatory_processes/participatory_process_importer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def import_folders_and_attachments(attachments)
131131
end
132132
end
133133

134-
unless attachments["attachment_collections"].empty?
135-
attachments["attachment_collections"].map do |collection|
134+
unless attachments["attachment_collections"].blank?
135+
attachments["attachment_collections"]&.map do |collection|
136136
Decidim.traceability.perform_action!("create", AttachmentCollection, @user) do
137137
create_attachment_collection(collection)
138138
end

0 commit comments

Comments
 (0)