Fix bug.
This commit is contained in:
parent
7127cd2fcb
commit
baf3b92942
|
@ -570,7 +570,7 @@ class Admin::GalleriesController < OrbitAdminController
|
|||
album_unprocess = AlbumUnprocess.new()
|
||||
files.each do |file|
|
||||
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)
|
||||
image.file = file
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue