Update html.formcompany.class.php

use paramter to select only active type of contact
This commit is contained in:
BENKE Charles 2013-09-25 10:17:27 +02:00
parent b400803a2a
commit f88470d3b8

View File

@ -627,7 +627,7 @@ class FormCompany
{
if (is_object($object) && method_exists($object, 'liste_type_contact'))
{
$lesTypes = $object->liste_type_contact($source, $order);
$lesTypes = $object->liste_type_contact($source, $order, 0, 1);
print '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
if ($showempty) print '<option value="0"></option>';
foreach($lesTypes as $key=>$value)