fix error
This commit is contained in:
parent
c1a5e89d57
commit
3aeb2a993b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue