Skip to Content
3
Former Member
Apr 28, 2017 at 01:19 PM

Backoffice: Multireference editor removal refresh of parent widget

785 Views

Let's take an example with Backoffice. We look at a product and have a reference list to variants linked and we go into one of them by clicking on it and then in that editor we click the trash can to remove it. I.e the actual variant and not the reference in the list. Then the editor is closed and the parent widget refreshed.

In the below image you can see the list. Here we selected F-6522 which has many 88xxxx variants linked which is displayed as a list below under 'Product Variants'. It's this list with 88xxxx I am talking about: alt text

After the delete of a variant from a product. Notice the behind the popup the parent widget has refreshed as well as the popup itself to be empty. This only works here. alt text

The above explained flow works for products with a list of variants from what we have seen so far but nothing else. No others. If we have a customer (or any other model) with a collection/list and do the same, i.e go into one item in the list on the customer and remove it then only the model is removed and the, the parent widget isn't refreshed which results in that the model is removed but the list entry remains there in the parent widget editor area until you reload the page. We want all places to act like it does with products and variant but we can't figure out what it is that makes the variant list on products work and why it doesn't work anywhere else for any other models in Backoffice.

Also if there is only one item in the list for any model the window isn't refreshed at all and all the content is left even though the model on the backend has been deleted and the list now is empty. If you manually press refresh in this editor it will disappear. Also if you reload the page then everything is correct but it seems like Backoffice gets stuck in inconsistent client side states. We are not sure what is going on or if there is a setting that we should use to make the parent editor area widget refresh when a model from a reference editor has been removed or updated.

Attachments

8519-debug1.png (65.5 kB)
8521-debug3.png (72.1 kB)