Fix bug.
This commit is contained in:
parent
a8221ebac0
commit
92c0a4b106
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue