umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.41k stars 2.66k forks source link

Error when deleting language #6581

Closed etharion closed 4 years ago

etharion commented 4 years ago

I have found a bug when deleting a language. If you have any tags created for the desired language, it throws an error about foreign keys in the database.

Reproduction

Make a clean Umbraco website with MS SQL database. Add two language (eg: da-dk and en-gb) Create a doc type with at least one property of Umbraco.Tags image

Create a node in content and add tags to the selected language. Save and Publish.

Now try delete the language with tags. Result will be this: image

I manually tried to add Delete on cascade on the two relationships in table ‘dbo.cmsTags’ with the result of fixing the above error.

AndyButland commented 4 years ago

Think this is a duplicate of #6269, which has now been fixed via PR (so should be in the next release).

nul800sebastiaan commented 4 years ago

Yep, closing as a duplicate of #6269