FIX #3529
This commit is contained in:
parent
7f60abdf7b
commit
e36928fd65
@ -3015,6 +3015,8 @@ class Form
|
||||
global $langs;
|
||||
$langs->load("categories");
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/categories/class.categorie.class.php';
|
||||
|
||||
$cat = new Categorie($this->db);
|
||||
$cate_arbo = $cat->get_full_arbo($type,$excludeafterid);
|
||||
|
||||
@ -4673,6 +4675,8 @@ class Form
|
||||
{
|
||||
global $db;
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/categories/class.categorie.class.php';
|
||||
|
||||
$cat = new Categorie($db);
|
||||
$categories = $cat->containing($id, $type);
|
||||
|
||||
|
||||
@ -264,10 +264,13 @@ if ($object->id > 0)
|
||||
print '</tr>';
|
||||
|
||||
// Categories
|
||||
print '<tr><td>' . $langs->trans("Categories") . '</td>';
|
||||
print '<td colspan="3">';
|
||||
print $form->showCategories($object->id, 'supplier', 1);
|
||||
print "</td></tr>";
|
||||
if (! empty($conf->categorie->enabled))
|
||||
{
|
||||
print '<tr><td>' . $langs->trans("Categories") . '</td>';
|
||||
print '<td colspan="3">';
|
||||
print $form->showCategories($object->id, 'supplier', 1);
|
||||
print "</td></tr>";
|
||||
}
|
||||
|
||||
// Other attributes
|
||||
$parameters=array('socid'=>$object->id, 'colspan' => ' colspan="3"', 'colspanvalue' => '3');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user