Sort type of email template combo list

This commit is contained in:
Laurent Destailleur 2018-04-19 20:42:03 +02:00
parent 17dd96ef31
commit 16e27a445b
2 changed files with 17 additions and 15 deletions

View File

@ -169,8 +169,10 @@ if ($conf->adherent->enabled) $elementList['member']=$langs->trans('Mai
if ($conf->contrat->enabled) $elementList['contract']=$langs->trans('MailToSendContract');
if ($conf->projet->enabled) $elementList['project']=$langs->trans('MailToProject');
$elementList['user']=$langs->trans('MailToUser');
$elementList['all'] =$langs->trans('VisibleEverywhere');
$elementList['none']=$langs->trans('VisibleNowhere');
sort($elementList);
// Add all and none after the sort
$elementList['all'] ='-- '.$langs->trans("All").' -- ('.$langs->trans('VisibleEverywhere').')';
$elementList['none']='-- '.$langs->trans("None").' -- ('.$langs->trans('VisibleNowhere').')';
$parameters=array('elementList'=>$elementList);
$reshook=$hookmanager->executeHooks('emailElementlist',$parameters); // Note that $action and $object may have been modified by some hooks

View File

@ -1721,19 +1721,19 @@ FillFixTZOnlyIfRequired=Example: +2 (fill only if problem experienced)
ExpectedChecksum=Expected Checksum
CurrentChecksum=Current Checksum
ForcedConstants=Required constant values
MailToSendProposal=To send customer proposal
MailToSendOrder=To send customer order
MailToSendInvoice=To send customer invoice
MailToSendShipment=To send shipment
MailToSendIntervention=To send intervention
MailToSendSupplierRequestForQuotation=To send quotation request to supplier
MailToSendSupplierOrder=To send supplier order
MailToSendSupplierInvoice=To send supplier invoice
MailToSendContract=To send a contract
MailToThirdparty=To send email from third party page
MailToMember=To send email from member page
MailToUser=To send email from user page
MailToProject= To send email from project page
MailToSendProposal=Customer proposals
MailToSendOrder=Customer orders
MailToSendInvoice=Customer invoices
MailToSendShipment=Shipments
MailToSendIntervention=Interventions
MailToSendSupplierRequestForQuotation=Supplier quotations
MailToSendSupplierOrder=Supplier orders
MailToSendSupplierInvoice=Supplier invoices
MailToSendContract=Contracts
MailToThirdparty=Third parties
MailToMember=Members
MailToUser=Users
MailToProject=Projects page
ByDefaultInList=Show by default on list view
YouUseLastStableVersion=You use the latest stable version
TitleExampleForMajorRelease=Example of message you can use to announce this major release (feel free to use it on your web sites)