diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index 5be9481..f7518a1 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -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