mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Template rendering fix for inventree.js
This commit is contained in:
parent
a93d96de58
commit
c08cb43c39
@ -91,7 +91,11 @@ function inventreeDocReady() {
|
|||||||
url: '/api/part/',
|
url: '/api/part/',
|
||||||
data: {
|
data: {
|
||||||
search: request.term,
|
search: request.term,
|
||||||
|
{% if request.user %}
|
||||||
limit: {% settings_value 'SEARCH_PREVIEW_RESULTS' user=request.user %},
|
limit: {% settings_value 'SEARCH_PREVIEW_RESULTS' user=request.user %},
|
||||||
|
{% else %}
|
||||||
|
limit: 25
|
||||||
|
{% endif %}
|
||||||
offset: 0
|
offset: 0
|
||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user