Merge pull request #23402 from ptibogxiv/patch-63
Fix error when no category selected
This commit is contained in:
commit
2f63bb29ee
@ -323,7 +323,7 @@ if ($modecompta == 'CREANCES-DETTES') {
|
||||
}
|
||||
if ($selected_cat === -2) { // Without any category
|
||||
$sql .= " AND cp.fk_product is null";
|
||||
} elseif ($selected_cat) { // Into a specific category
|
||||
} elseif ($selected_cat > 0) { // Into a specific category
|
||||
if ($subcat) {
|
||||
$TListOfCats = $categorie->get_full_arbo('product', $selected_cat, 1);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user