diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_co_author_relations_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_co_author_relations_controller.rb index c55186cb..3bfe63e8 100644 --- a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_co_author_relations_controller.rb +++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_co_author_relations_controller.rb @@ -55,9 +55,9 @@ class Panel::PersonalConference::Desktop::ConferenceCoAuthorRelationsController private def reset_co_author_relation - co_author = ConferenceCoAuthor.where(co_author_relations_id: @co_author_relation.id) + co_author = ConferenceCoAuthor.where(conference_co_author_relations_id: @conference_co_author_relation.id) co_author.map do |c| - c.update_attributes(co_author_relations_id: nil) + c.update_attributes(conference_co_author_relations_id: nil) end end end diff --git a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_co_author_relations_controller.rb b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_co_author_relations_controller.rb index d6b19b92..2cb72eeb 100644 --- a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_co_author_relations_controller.rb +++ b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_co_author_relations_controller.rb @@ -55,9 +55,9 @@ class Panel::PersonalJournal::Desktop::JournalCoAuthorRelationsController < Appl private def reset_co_author_relation - co_author = JournalCoAuthor.where(co_author_relations_id: @co_author_relation.id) + co_author = JournalCoAuthor.where(journal_co_author_relations_id: @journal_co_author_relation.id) co_author.map do |c| - c.update_attributes(co_author_relations_id: nil) + c.update_attributes(journal_co_author_relations_id: nil) end end end