From baf3b9294290556a19e4c99274c1d95f43f5fd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 4 Aug 2024 15:39:48 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/galleries_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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