From 26a9f1a31890e9b3e04b173c04c3895be6f0b6e3 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 2 Feb 2017 11:17:52 +0100 Subject: [PATCH] Partpicker: fat_set_item mit neuem Part-Controller gefixt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Der alte Part-Controller erwartete, dass die Part-ID als $::form->{id} übergeben wird. Der neue hingegen nutzt $::form->{part}->{id}. --- 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 cae7f01af..4ebc5a583 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -98,7 +98,7 @@ namespace('kivi', function(k){ if (o.fat_set_item && item.id) { $.ajax({ url: 'controller.pl?action=Part/show.json', - data: { id: item.id }, + data: { 'part.id': item.id }, success: function(rsp) { $real.trigger('set_item:PartPicker', rsp); }, -- 2.20.1