User ValidateCanDelete switched to checking all references from only event log
This commit is contained in:
@@ -208,7 +208,7 @@ namespace AyaNova.Biz
|
||||
//Referential integrity
|
||||
//FOREIGN KEY CHECKS
|
||||
if (await ct.QuoteState.AnyAsync(m => m.QuoteStatusId == inObj.Id))
|
||||
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("QuoteStatus"));
|
||||
AddError(ApiErrorCode.VALIDATION_REFERENTIAL_INTEGRITY, "generalerror", await Translate("QuoteQuoteStatusType"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user