FIX combo Prospect / Customers / Supplier in society list
This commit is contained in:
parent
6c2d9d3b3c
commit
04c97d2695
@ -971,6 +971,10 @@ class FormCompany extends Form
|
|||||||
{
|
{
|
||||||
|
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && !empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->fournisseur->enabled))
|
||||||
|
{
|
||||||
|
return '' ;
|
||||||
|
}
|
||||||
|
|
||||||
$out = '<select class="flat '.$morecss.'" name="'.$htmlname.'" id="'.$htmlidname.'">';
|
$out = '<select class="flat '.$morecss.'" name="'.$htmlname.'" id="'.$htmlidname.'">';
|
||||||
if ($typeinput == 'form') {
|
if ($typeinput == 'form') {
|
||||||
@ -993,7 +997,10 @@ class FormCompany extends Form
|
|||||||
if (empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) {
|
if (empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) {
|
||||||
$out .= '<option value="1,3"'.($selected == '1,3' ? ' selected' : '').'>'.$langs->trans('Customer').'</option>';
|
$out .= '<option value="1,3"'.($selected == '1,3' ? ' selected' : '').'>'.$langs->trans('Customer').'</option>';
|
||||||
}
|
}
|
||||||
$out .= '<option value="4"'.($selected == '4' ? ' selected' : '').'>'.$langs->trans('Supplier').'</option>';
|
if (!empty($conf->fournisseur->enabled))
|
||||||
|
{
|
||||||
|
$out .= '<option value="4"'.($selected == '4' ? ' selected' : '').'>'.$langs->trans('Supplier').'</option>';
|
||||||
|
}
|
||||||
$out .= '<option value="0"'.($selected == '0' ? ' selected' : '').'>'.$langs->trans('Other').'</option>';
|
$out .= '<option value="0"'.($selected == '0' ? ' selected' : '').'>'.$langs->trans('Other').'</option>';
|
||||||
} elseif ($typeinput == 'admin') {
|
} elseif ($typeinput == 'admin') {
|
||||||
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) {
|
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user