diff --git a/app/controllers/collection_items_controller.rb b/app/controllers/collection_items_controller.rb index 86a7088076..6c8276ccc5 100644 --- a/app/controllers/collection_items_controller.rb +++ b/app/controllers/collection_items_controller.rb @@ -138,6 +138,7 @@ def create unless new_collections.empty? flash[:notice] = ts("Added to collection(s): %{collections}.", collections: new_collections.collect(&:title).join(", ")) + flash[:notice] += t("bookmarks.create.warnings.private_bookmark_added_to_collection") end unless invited_collections.empty? invited_collections.each do |needs_user_approval| diff --git a/spec/controllers/collection_items_controller_spec.rb b/spec/controllers/collection_items_controller_spec.rb index ec7a4065e5..82d6f23d32 100644 --- a/spec/controllers/collection_items_controller_spec.rb +++ b/spec/controllers/collection_items_controller_spec.rb @@ -358,7 +358,7 @@ context "when the item's creator does not allow collection invitations" do it "adds the item anyway" do post :create, params: params - it_redirects_to_with_notice(work, "Added to collection(s): #{collection.title}.") + it_redirects_to_with_notice(work, "Added to collection(s): #{collection.title}. Please note: private bookmarks are not listed in collections.") expect(work.reload.collections).to include(collection) end end @@ -366,7 +366,7 @@ context "when the item's creator allows collection invitations" do it "adds the item" do post :create, params: params - it_redirects_to_with_notice(work, "Added to collection(s): #{collection.title}.") + it_redirects_to_with_notice(work, "Added to collection(s): #{collection.title}. Please note: private bookmarks are not listed in collections.") expect(work.reload.collections).to include(collection) end end