From edf13842def1043e6867b6543d8594d16aa72f0a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 24 Jun 2020 23:51:40 +0000 Subject: [PATCH] --- server/AyaNova/biz/TranslationBiz.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/AyaNova/biz/TranslationBiz.cs b/server/AyaNova/biz/TranslationBiz.cs index ac432ad6..d66ca97e 100644 --- a/server/AyaNova/biz/TranslationBiz.cs +++ b/server/AyaNova/biz/TranslationBiz.cs @@ -319,20 +319,20 @@ namespace AyaNova.Biz //Ensure it's not a stock translation if (inObj.Stock == true) { - AddError(ApiErrorCode.INVALID_OPERATION, "object", "Translation is a Stock translation and cannot be deleted"); + AddError(ApiErrorCode.INVALID_OPERATION, null, "Translation is a Stock translation and cannot be deleted"); return; } if (inObj.Id == ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID) { - AddError(ApiErrorCode.INVALID_OPERATION, "object", "Translation is set as the default server translation (AYANOVA_DEFAULT_LANGUAGE_ID) and can not be deleted"); + AddError(ApiErrorCode.INVALID_OPERATION, null, "Translation is set as the default server translation (AYANOVA_DEFAULT_LANGUAGE_ID) and can not be deleted"); return; } //See if any users exist with this translation selected in which case it's not deleteable if (await ct.UserOptions.AnyAsync(e => e.TranslationId == inObj.Id)) { - AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "object", "Can't be deleted in use by one or more Users"); + AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, null, "Can't be deleted in use by one or more Users"); return; } }