Merge pull request #9708 from bafbes/abb80030

FIX users categories type is Categorie::TYPE_USER
This commit is contained in:
Laurent Destailleur 2018-10-09 14:24:21 +02:00 committed by GitHub
commit 966e97617d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2285,7 +2285,7 @@ else
{
print '<tr><td>' . fieldLabel( 'Categories', 'usercats' ) . '</td>';
print '<td>';
$cate_arbo = $form->select_all_categories( Categorie::TYPE_CONTACT, null, null, null, null, 1 );
$cate_arbo = $form->select_all_categories( Categorie::TYPE_USER, null, null, null, null, 1 );
$c = new Categorie( $db );
$cats = $c->containing($object->id, Categorie::TYPE_USER);
foreach ($cats as $cat) {