Skip to content

Content picker does not show picked item when the item has been deleted #19018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PeterKvayt opened this issue Apr 13, 2025 · 2 comments
Open

Comments

@PeterKvayt
Copy link
Contributor

Which Umbraco version are you using?

15.3.0

Bug summary

You can publish content with an empty mandatory content picker property.

Specifics

Here is the uSync to prepare the environment:

usync-export(1).zip

Steps to reproduce

  1. Apply uSync for fresh installed umbraco
  2. Create node type of "Item"
  3. Add to node category, e.g. Category (2)
  4. Save and publish it
  5. Trash Category (2)
  6. Save and publish Item (it should works, and Category (2) should be displayed with removed tag)
  7. Delete Category (2) from trash
  8. Open Item (there is no Category (2) in list event with removed tag)
  9. Click Save and Publish
2025-04-13.15-28-08.mp4

Expected result / actual result

Actual: you can publish content with empty mandatory property
Expected: you can't publish content with empty mandatory property

P.S.: as I can see Item has key of removed Category (2) in property, but it does not displayed on UI in case when Category (2) has been deleted from umbraco permanently.

I think in that case we can show this item key with some label, so users will have the ability to delete from list removed items and it will be clear for users why mandatory field allows to publish.

Copy link

Hi there @PeterKvayt!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@AndyButland
Copy link
Contributor

Can reproduce this, though I would say the error isn't that you are allowed to publish. The configuration is to validate as valid if at least one item is picked, and one item is, even if the item referenced has been deleted.

So I think the solution here is that the UI should display the picked item as best it can - likely just a GUID and message that the selected item can no longer be found. That would give the user the ability to remove it and select something else.

@AndyButland AndyButland changed the title Mandatory content picker allows empty property publish Content picker does not show picked item when the item has been deleted Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants