diff --git a/app/models/edition.rb b/app/models/edition.rb index ca584a9aa..81a12d220 100644 --- a/app/models/edition.rb +++ b/app/models/edition.rb @@ -530,6 +530,7 @@ def base_field_keys panopticon_id overview slug + owning_org_content_ids ] end diff --git a/test/models/edition_test.rb b/test/models/edition_test.rb index eb70e0921..9d4d76296 100644 --- a/test/models/edition_test.rb +++ b/test/models/edition_test.rb @@ -176,11 +176,13 @@ def draft_second_edition_from(published_edition) version_number: 1, overview: "I am a test overview", in_beta: true, + owning_org_content_ids: %w[org-1], ) clone_edition = edition.build_clone assert_equal "I am a test overview", clone_edition.overview assert_equal true, clone_edition.in_beta assert_equal 2, clone_edition.version_number + assert_equal %w[org-1], clone_edition.owning_org_content_ids end test "cloning can only occur from a published edition" do