Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

Multiple form tabs - error when opening modal #314

Closed hugopeek closed 6 years ago

hugopeek commented 6 years ago

First time you add or edit an item, the modal works as expected, but the console shows the following error: TypeError: win is undefined.

This results in fields not being loaded properly the second time you open a modal:

screenshot from 2018-05-15 17-50-55

This only happens when using multiple form tabs. No issues if all fields are under the same tab.

Using MIGXdb and MIGX 2.12.0. Tested in Firefox and Chrome.

Bruno17 commented 6 years ago

you have a unique MIGX id defined in the config?

hugopeek commented 6 years ago

I do now, and that did the trick. Thanks @Bruno17 :+1:

How is that unique ID different from the MODX ID btw? And is it ok to use the same ID for both?