// Fixed #445
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12482 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -224,9 +224,9 @@
|
|||||||
autoFill: true,
|
autoFill: true,
|
||||||
max:20,
|
max:20,
|
||||||
matchContains: true,
|
matchContains: true,
|
||||||
mustMatch:true,
|
mustMatch:false,
|
||||||
scroll:false,
|
scroll:false,
|
||||||
cacheLength:0,
|
cacheLength:20,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
extraParams: {
|
extraParams: {
|
||||||
id_supplier: '{$supplier_id}',
|
id_supplier: '{$supplier_id}',
|
||||||
@@ -237,6 +237,8 @@
|
|||||||
action : 'searchProduct',
|
action : 'searchProduct',
|
||||||
},
|
},
|
||||||
parse: function(data) {
|
parse: function(data) {
|
||||||
|
if (data == null)
|
||||||
|
return [];
|
||||||
var res = $.map(data, function(row) {
|
var res = $.map(data, function(row) {
|
||||||
// filter the data to chaeck if the product is already added to the order
|
// filter the data to chaeck if the product is already added to the order
|
||||||
if (jQuery.inArray(row.id, product_ids) == -1)
|
if (jQuery.inArray(row.id, product_ids) == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user