diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 827f6e0b747..59225f2dc89 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -1343,6 +1343,10 @@ if ($id) else if ($fieldlist[$field]=='price' || preg_match('/^amount/i',$fieldlist[$field])) { $valuetoshow=price($valuetoshow); } + if ($value == 'private') + { + $valuetoshow = yn($elementList[$valuetoshow]); + } else if ($fieldlist[$field]=='libelle_facture') { $langs->load("bills"); $key=$langs->trans("PaymentCondition".strtoupper($obj->code)); @@ -1691,6 +1695,12 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='') print $form->selectarray('source', $sourceList,(! empty($obj->{$fieldlist[$field]})?$obj->{$fieldlist[$field]}:'')); print ''; } + elseif ($fieldlist[$field] == 'private') + { + print '