From c9c58af9711cea252731023591b37ad19eba5d55 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 23 Jan 2021 19:00:52 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 723751b0..33969f97 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -173,6 +173,24 @@ CURRENTLY DOING: Cleanup with untranslated error string when attempting to dele Finally the error display for a referential integrity error on delete is ugly, confusing and has too much shit going on clean it up to a one liner that clearly mixes in the object name with the error however that has to happen. just want to see a clean list of all the types of objects it's linked to + +How it would look with ErrorDBForeignKeyViolation method: +--- +Validation error +ErrorAPI2200 +Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: Inventory transaction" +Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: Part" +Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: Unit" +Invalid operation [2030] - "This object can not be deleted because it is linked to one or more related objects: User" +--- + +Validation error +ErrorAPI2200 +This object is linked to others and can not be changed this way [2208] - "Part" +This object is linked to others and can not be changed this way [2208] - "Unit" +This object is linked to others and can not be changed this way [2208] - "Inventory transaction" +This object is linked to others and can not be changed this way [2208] - "User" +