-
Notifications
You must be signed in to change notification settings - Fork 34
Fields in modal window are copied to the one in the back #1831
Comments
The way it works now, is we're updating fields with the same name both in the modal and master view. I think it's for the cases, when user is for instance editing some products displayed in the table. export function updatePropertyValue(property, value, tabid, rowid, isModal) {
return dispatch => {
if (tabid && rowid) {
dispatch(
updateRowFieldProperty(property, { value }, tabid, rowid, 'master')
);
if (isModal) {
dispatch(updateDataFieldProperty(property, { value }, 'modal'));
}
} else {
dispatch(updateDataFieldProperty(property, { value }, getScope(isModal)));
if (isModal) {
//update the master field too if exist
dispatch(updateDataFieldProperty(property, { value }, 'master'));
}
}
};
} this |
@teosarca to be able to fix that we'd need a flag for windows that open in modals, but are not related to content beneath them (so for instance the aforementioned |
@siemiatj i think we don't need a flag. we can just have some rules, e.g.
|
I thought I've already checked the document and window id's but maybe I'm wrong. Just blocking background fields updates for process modals should be enough I think. |
Adds new Issue metasfresh/metasfresh-webui-frontend-legacy#1831 Fields in modal window are copied to the one in the back
IT |
Is this a bug or feature request?
bug
What is the current behavior?
if you have fields that are called the same in a process and in a normal window, and you set them in the process, then they are set in the normal window as well
Which are the steps to reproduce?
create a new manufacturing order, like this one https://w101.metasfresh.com:8443/window/53009/1000044
take a look on attributes field
=> there are only 3 you can set. Leave them for now
in the same tab, open "Business Partner Revenue" process
set a product (a different one that you have in your order) and some attributes (like country)
cancel the process
see product and the attributes from your manufacturing order
=> product and attributes are from the process
=> instead of 3 attributes you see all
What is the expected or desired behavior?
The text was updated successfully, but these errors were encountered: