This commit is contained in:
BoHung Chiu 2021-04-24 18:54:34 +08:00
parent a8221ebac0
commit 92c0a4b106
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class SeminarSubmissionValue
before_save :check_key
before_save :data_proc
after_save do
if (self.seminar_submission_field.markup == "seminar_preferred_session" rescue false)
if (self.seminar_submission_field.markup == "seminar_preferred_session" rescue false) && self.seminar_signup_contribute
val_change = self.val_change
self.seminar_signup_contribute.update(:preferred_session=>val.to_i)
self.seminar_signup_contribute.seminar_signup.set_preferred_sessions