Fix bug.
This commit is contained in:
parent
7127cd2fcb
commit
baf3b92942
|
@ -570,7 +570,7 @@ class Admin::GalleriesController < OrbitAdminController
|
||||||
album_unprocess = AlbumUnprocess.new()
|
album_unprocess = AlbumUnprocess.new()
|
||||||
files.each do |file|
|
files.each do |file|
|
||||||
image = album.album_images.new
|
image = album.album_images.new
|
||||||
image.tags = (album.tags rescue [])
|
image.tags = album.tag_ids.map(&:to_s)
|
||||||
if(AlbumVariable.first.count==1 rescue true)
|
if(AlbumVariable.first.count==1 rescue true)
|
||||||
image.file = file
|
image.file = file
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue