Merge branch 'master' into 'master'

Fix bug.

See merge request spen/seminar!23
This commit is contained in:
chiu 2021-11-15 11:30:11 +00:00
commit d9ef14ab5f
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ class Admin::SeminarsController < OrbitAdminController
end end
end end
else 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) @seminar.update(:assign_mode => 0)
else else
@seminar.update(:assign_mode => 1) @seminar.update(:assign_mode => 1)