From 639fdd888c7ecd88cada18f5f6c3625971142750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Wed, 27 Sep 2023 17:07:44 +0800 Subject: [PATCH] fix delete error --- app/models/seminar_signup.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/seminar_signup.rb b/app/models/seminar_signup.rb index 91aef93..fefd159 100644 --- a/app/models/seminar_signup.rb +++ b/app/models/seminar_signup.rb @@ -69,6 +69,7 @@ class SeminarSignup sr.save end end + seminar_main.seminar_signups.delete(self) #avoid resave if seminar_main.unassigned_seminar_signup_ids.delete(id) seminar_main.save end