Skip to content

Commit

Permalink
Fix bad list of id for supplier categories
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 12, 2018
1 parent 64f61c8 commit 60a848d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion htdocs/categories/class/categorie.class.php
Expand Up @@ -896,10 +896,14 @@ function getListForItem($id, $type='customer', $sortfield = "s.rowid", $sortorde

$sub_type = $type;
$subcol_name = "fk_".$type;
if ($type=="customer" || $type=="supplier") {
if ($type=="customer") {
$sub_type="societe";
$subcol_name="fk_soc";
}
if ($type=="supplier") {
$sub_type="fournisseur";
$subcol_name="fk_soc";
}
if ($type=="contact") {
$subcol_name="fk_socpeople";
}
Expand Down

0 comments on commit 60a848d

Please sign in to comment.