This commit is contained in:
@@ -9,6 +9,7 @@ todo: GetErrorBoxErrors is not translating due to async / sync mix.
|
||||
proposal is to make a seperate async method for general error box errors or translate earlier in the actual fetch api method call return when error found
|
||||
todo: every form all fields error collection is set to "servererrors" but really its' any kind of validation error local or server so not sure why ti's named that
|
||||
|
||||
todo: userbiz validate can delete has funky error
|
||||
|
||||
todo: *biz objects with foreign key constraints should call ValidateCanDelete
|
||||
and validatecandelete *MUST* check for those constraints and return a proper error object
|
||||
@@ -166,6 +167,7 @@ CURRENTLY DOING: Cleanup with untranslated error string when attempting to dele
|
||||
so now that's working, clean it up
|
||||
Remove translation await code from gzform as it's not going to work that way and assume all errors come with pre-translated or do not require a fetch
|
||||
all stock error number validation codes errors should nto need to fetch as be prefetched so no need for async for that particualr purpose
|
||||
|
||||
At server add standard *biz function to Translate(key) to replace the long winded one in ValidateCanDelete that is available to *all* biz objects
|
||||
Then go into every validate save and validate delete and look for lt keys and replace with this pre-translate call to Translate(key)
|
||||
Finally the error display for a referential integrity error on delete is ugly, confusing and has too much shit going on
|
||||
|
||||
Reference in New Issue
Block a user