Send full state of current form when doing ajax select2 callback, enabling more advanced filtering
};
if (endpoint_path) {
options.ajax = {
- url: "",
+ url: function() {
+ return '?' + this.closest('form').serialize();
+ },
dataType: "json",
data: function (params) {
let result = {
