This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user