mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
fix ajax search for external modules
This commit is contained in:
committed by
Laurent Destailleur
parent
425f10d71e
commit
b64ecef81d
@@ -286,7 +286,7 @@ if ($action == 'getProducts') {
|
||||
$sql .= " AND archive = 0";
|
||||
}*/
|
||||
if (getDolGlobalInt('TAKEPOS_PRODUCT_IN_STOCK') == 1) {
|
||||
$sql .= ' INNER JOIN '.MAIN_DB_PREFIX.'product_stock as ps';
|
||||
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_stock as ps';
|
||||
$sql .= ' ON (p.rowid = ps.fk_product';
|
||||
if (getDolGlobalString('CASHDESK_ID_WAREHOUSE'.$_SESSION['takeposterminal'])) {
|
||||
$sql .= " AND ps.fk_entrepot = ".((int) getDolGlobalInt("CASHDESK_ID_WAREHOUSE".$_SESSION['takeposterminal']));
|
||||
@@ -381,6 +381,7 @@ if ($action == 'getProducts') {
|
||||
} else {
|
||||
$row = array();
|
||||
}
|
||||
$rows[] = $row;
|
||||
} else {
|
||||
// add
|
||||
if (count($hookmanager->resArray)) {
|
||||
|
||||
Reference in New Issue
Block a user