Fix bad list of id for supplier categories

This commit is contained in:
Laurent Destailleur 2018-02-12 04:05:13 +01:00
parent 976241da61
commit f637269a27

View File

@ -896,10 +896,14 @@ class Categorie extends CommonObject
$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";
}