diff --git a/app/helpers/admin/galleries_helper.rb b/app/helpers/admin/galleries_helper.rb index fcb17a7..18ac718 100644 --- a/app/helpers/admin/galleries_helper.rb +++ b/app/helpers/admin/galleries_helper.rb @@ -2,6 +2,7 @@ module Admin::GalleriesHelper def import_this_image(row,album) value = {} image = AlbumImage.new + image.album = album row.cells.each_with_index do |cell,index| val = cell.value rescue nil next if val.blank? @@ -14,7 +15,6 @@ module Admin::GalleriesHelper image.description_translations = value end end - image.album = album image.save end end