2
0
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:
Oliver 2021-07-27 17:22:44 +10:00
parent a93d96de58
commit c08cb43c39

View File

@ -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) {