Skip to content

Commit 291a35e

Browse files
authored
Request not returned
```cannot use 'in' operator to search for 'status' in 'r'``` This happend when i search in the input. In fact request is never returned and selec2 can't check for "status" because request is "undefined"
1 parent e823604 commit 291a35e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Resources/public/js/select2entity.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
request = $.ajax(params).fail(failure).done(success).always(function () {
5959
request = undefined;
6060
});
61+
62+
return request;
6163
}
6264
},
6365
data: function (params) {

0 commit comments

Comments
 (0)