From aff03f732e85d8585f742c5463f89e59440625cf Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 15 Nov 2021 19:25:38 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/seminars_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/seminars_controller.rb b/app/controllers/admin/seminars_controller.rb index dce2089..dcd46ac 100644 --- a/app/controllers/admin/seminars_controller.rb +++ b/app/controllers/admin/seminars_controller.rb @@ -584,7 +584,7 @@ class Admin::SeminarsController < OrbitAdminController end end else - if seminar_main.seminar_sessions.where(:seminar_signup_ids.ne=>[]).count == 0 + if @seminar.seminar_sessions.where(:seminar_signup_ids.ne=>[]).count == 0 @seminar.update(:assign_mode => 0) else @seminar.update(:assign_mode => 1)