Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James 2 posts 22 karma points
    Oct 07, 2011 @ 17:05
    James
    0

    Bug with Media Picker and Mandatory fields

    Hi all

    Firstly - I'm new to Umbraco so apologies if I've missed something or if my terminology isn't quite correct. However I think I have found a bug / anomaly. Umbraco allows a user to delete Media content being used by a Content Item with a Media Picker even when that property is set as mandatory. Consequently a published item ends up with a garbage value in a mandatory field.

    For example:

    I have a Document Type named news item with a property of type Media Picker called main image with is flagged as mandatory. I upload an image to the Media area named my image. I create a Content Item of type news item and set the main image property to my image. Then I delete the Media Item, my image from Media. Now the news item has a reference to a Media Item that no longer exists - which basically breaks it requirement to be mandatory.

    I would have thought that a Media Item should not be deletable while it is in use by a mandatory property.

    If you have any thoughts as to whether this is a bug, limitation or solvable that would be very helpful. (I guess in the latter case by extending Media Picker control.)

    Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft