Copied to clipboard

Flag this post as spam?

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


  • Jason 17 posts 167 karma points
    28 days ago
    Jason
    0

    "Document was not published, but we saved it for you" when using an optional language

    I have created a new Umbraco site using the command dotnet new umbraco --name MyProject (using Umbraco.Templates 14.3.1).

    I added a second (non-mandatory) language so I now have English (United States) which is the default and English (Australia) which is not mandatory and has no fallback.

    I then added a new Document Type called Test with Vary by culture enabled and a single mandatory text string called Heading that also has Vary by culture enabled.

    I then create a new content item based on the Test document type and only enter values for the English (United States) language. When I hit the Save & Publish button, I get an error "Document was not published, but we saved it for you".

    If I select the Publish option from the popup menu on the new content item, then it publishes fine, but it doesn't work when using the Save & Publish button.

    If I complete the English (Australia) fields on the content item then the Save & Publish button works fine and the item publishes. Or, if I make the fields non-mandatory on the document type, then the Save & Publish button works fine too even when I only complete the English (United States) fields.

    It seems that the mandatory fields are being enforced for the English (Australia) language even though the languages is not marked as mandatory. Is that right?

Please Sign in or register to post replies

Write your reply to:

Draft