This commit is contained in:
BoHung Chiu 2021-11-15 19:25:38 +08:00
parent ed0c4a5a2f
commit aff03f732e
1 changed files with 1 additions and 1 deletions

View File

@ -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)