From ee4b527080ea2db5f07f0b8c6d406de47b74e81b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 16 Jun 2014 13:18:38 +0200 Subject: [PATCH] PartPicker: keine AJAJ-Requests nach Fat-Data ohne item.id schicken --- js/autocomplete_part.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index d0984eb01..d9bf8dbbb 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -83,7 +83,7 @@ namespace('kivi', function(k){ last_dummy = $dummy.val(); $real.trigger('change'); - if (o.fat_set_item) { + if (o.fat_set_item && item.id) { $.ajax({ url: 'controller.pl?action=Part/show.json', data: { id: item.id }, -- 2.20.1