From 9c2f4ce49133f7b473d7eb314bdff9896037ff76 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 30 Sep 2021 09:42:50 +1000 Subject: [PATCH] Merge pull request #2083 from SchrodingersGat/search-results Display "full_name" rather than "name" in quick search bar (cherry picked from commit 819934af7e3443d5f5ead706ab8b4355aae6da72) --- InvenTree/templates/js/dynamic/inventree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/templates/js/dynamic/inventree.js b/InvenTree/templates/js/dynamic/inventree.js index 7d608c1886..5cd7bfcb80 100644 --- a/InvenTree/templates/js/dynamic/inventree.js +++ b/InvenTree/templates/js/dynamic/inventree.js @@ -116,7 +116,7 @@ function inventreeDocReady() { success: function(data) { var transformed = $.map(data.results, function(el) { return { - label: el.name, + label: el.full_name, id: el.pk, thumbnail: el.thumbnail };