[Vtigercrm-developers] [CustomView]Select2 throwing undefined query function not lettings save in edit view after creation

Sukhdev Mohan s.mohan at myti.it
Sat Oct 9 07:11:32 GMT 2021


Hi All,

I'm facing the following issue:
We create a custom view, when we want to edit conditions we are asked if we
want to go outside the site and if answered yes it gives a JSON with
success false. All the edit are lost.

Looking through console it shows an error on Select2 element which says
"Uncaught query function not defined for Select2 undefined". The issue
arises on layouts/v7/modules/VTiger/resources/utils.js line 63

It seems that the system is trying to reinitialise select2 but fails. I
tried to check if select2 for the instance isn't undefined then to load
select2={}  but it doesn't work.

Anyone faced the same issue? How to fix it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20211009/1a47f978/attachment.html>


More information about the vtigercrm-developers mailing list