-
Notifications
You must be signed in to change notification settings - Fork 34
Address editor silently ignores changes if the mandatory fields are not filled #619
Comments
I can't understand that. The mandatory property was introduced to avoid saving entity without filled value. It is not "silently" ignored, but vividly parsed:
It was introduced by the issue #294 when leaving attributes widget was returning error, due to not filling mandatory fields. The patch for other fields in attributes are not canceled by mandatory field, is regularly patched. If You want to remove that validation, so what is reason of mandatory field there? Only visual? And it will be properly parsed by API? So should we keep that consistancy everywhere? And remove mandatory validation for every widget? |
It's another case of "we started editing and didn't finished with all required fields". Due to recent changes of adding "Do you want to leave?" we should add something similar to this also for attributes widget. |
Yes, no problem - but, i think that we still should not call |
#619 Window confirmation for all of attribute widgets
[#631](metasfresh/metasfresh-webui-frontend-legacy#631) Minor grid view layout tweaks [#628](https://github.com/metasfresh/metasfresh-webui-frontr /process/start response [#294](metasfresh/metasfresh-webui-api-legacy#294) Refactor /process/start response [#1291](#1291) Manufacturing Order Window adjustments [#620](metasfresh/metasfresh-webui-frontend-legacy#620) When deleting a newly created document, frontend shall not ask the user if he/she wants to leave the page [#619](metasfresh/metasfresh-webui-frontend-legacy#619) Address editor silently ignores changes if the mandatory fields are not filled [#1057](#1057) Role window WebUI [#267](metasfresh/metasfresh-webui-frontend-legacy#267) Sidelist refactor [#886](#886) GrandTotal missing in GridView of Purchase Order [#695](#695) swingUI: provide lib-dirs to access user jars and dlls at runtime [#110](metasfresh/metasfresh-webui-frontend-legacy#110) Don't fetch the side list when it's not needed [#88](metasfresh/metasfresh-webui-frontend-legacy#88) Special Place for Record dependent content [#636](metasfresh/metasfresh-webui-frontend-legacy#636) Sidelist Fontsize too small me-45
Results of IT1
@teosarca: i did not get any question when leaving the product attributes editor, e.g. in orderline, is that OK? afiar there are no mandatory fields anymore in product attributes editor? |
@metas-dh no, it's not @damianprzygodzki Damian, can u pls check for ASI editor too? |
@teosarca It is the same widget, so there is no difference. Could you locate ASI with mandatory field?
Please remember that question is appearing only when there are not filled mandatory field. |
Results of IT2
|
Type of issue
Bug
Current behavior
NOTE: in address editor, the country field is mandatory
When editing a new address, if you fill the other fields (e.g. address1) but not the country and then you click away, the frontend is silently ignoring the changes (i.e. does not call the /complete endpoint)
NOTE:
NOTE2: please also check/fix this issue on Product Attributes editor.
Expected behavior
IMHO, in this case, the frontend shall ask user if he/she really wants to cancel editing in this case.
Steps to reproduce
=> frontend is silently ignoring the changes, without any question => NOK
The text was updated successfully, but these errors were encountered: