Fix regression

This commit is contained in:
Laurent Destailleur 2019-10-20 15:29:15 +02:00
parent e224170dc2
commit 45d64e468f

View File

@ -409,7 +409,7 @@ function Search2() {
console.log("Search2");
pageproducts=0;
jQuery(".wrapper2 .catwatermark").hide();
$.getJSON('<?php echo DOL_URL_ROOT ?>/takepos/ajax/ajax.php?action=search&term='+$('#search').val(), function(data) {
$.getJSON('./ajax.php?action=search&term='+$('#search').val(), function(data) {
for (i = 0; i < <?php echo $MAXPRODUCT ?>; i++) {
if (typeof (data[i]) == "undefined"){
$("#prodesc"+i).text("");