Fix hook for formmail and translation
This commit is contained in:
parent
57c7fa6ae9
commit
472d7b591e
@ -521,9 +521,19 @@ class FormMail extends Form
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set the default "From"
|
||||
$defaultfrom='';
|
||||
$reshook=$hookmanager->executeHooks('getDefaultFromEmail', $parameters, $this);
|
||||
if (empty($reshook))
|
||||
{
|
||||
$defaultfrom = $this->fromtype;
|
||||
}
|
||||
if (! empty($hookmanager->resArray['defaultfrom'])) $defaultfrom=$hookmanager->resArray['defaultfrom'];
|
||||
|
||||
// Using combo here make the '<email>' no more visible on list.
|
||||
//$out.= ' '.$form->selectarray('fromtype', $liste, $this->fromtype, 0, 0, 0, '', 0, 0, 0, '', 'maxwidth200onsmartphone', 1, '', $disablebademails);
|
||||
$out.= ' '.$form->selectarray('fromtype', $liste, $this->fromtype, 0, 0, 0, '', 0, 0, 0, '', 'maxwidth200onsmartphone', 0, '', $disablebademails);
|
||||
//$out.= ' '.$form->selectarray('fromtype', $liste, $this->fromtype, 0, 0, 0, '', 0, 0, 0, '', 'fromforsendingprofile maxwidth200onsmartphone', 1, '', $disablebademails);
|
||||
$out.= ' '.$form->selectarray('fromtype', $liste, $defaultfrom, 0, 0, 0, '', 0, 0, 0, '', 'fromforsendingprofile maxwidth200onsmartphone', 0, '', $disablebademails);
|
||||
}
|
||||
|
||||
$out.= "</td></tr>\n";
|
||||
|
||||
@ -1959,7 +1959,7 @@ class Societe extends CommonObject
|
||||
if (! empty($this->country_code))
|
||||
$label.= '<br><b>' . $langs->trans('Country') . ':</b> '. $this->country_code;
|
||||
if (! empty($this->tva_intra))
|
||||
$label.= '<br><b>' . $langs->trans('VATNumber') . ':</b> '. $this->tva_intra;
|
||||
$label.= '<br><b>' . $langs->trans('VATIntra') . ':</b> '. $this->tva_intra;
|
||||
if (! empty($this->code_client) && $this->client)
|
||||
$label.= '<br><b>' . $langs->trans('CustomerCode') . ':</b> '. $this->code_client;
|
||||
if (! empty($this->code_fournisseur) && $this->fournisseur)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user