Allowed delete of langage via services even if used as a fall-back for other languages, by setting references to null before deleting

This commit is contained in:
AndyButland
2018-07-21 08:24:08 +02:00
parent 91a0ee2c93
commit ecc75bc4c9
5 changed files with 45 additions and 4 deletions

View File

@@ -393,8 +393,7 @@ namespace Umbraco.Core.Services.Implement
return;
}
//NOTE: There isn't any constraints in the db, so possible references aren't deleted
// NOTE: Other than the fall-back language, there aren't any other constraints in the db, so possible references aren't deleted
_languageRepository.Delete(language);
deleteEventArgs.CanCancel = false;