The code used the xml_id field instead of the key field at some point, so the modal was not fetching the proper views. This commit also removes the useless code in there.
The code used the xml_id field instead of the key field at some point, so the modal was not fetching the proper views. This commit also removes the useless code in there.