Pas de choix de langues sur export (rien n'est traduit)
This commit is contained in:
parent
f5d69e0add
commit
62aa64271a
@ -492,7 +492,7 @@ if ($step == 4 && $datatoexport)
|
||||
|
||||
// Affiche liste des documents
|
||||
// NB: La fonction show_documents rescanne les modules qd genallowed=1
|
||||
$htmlform->show_documents('export','',$conf->export->dir_ouput.'/'.$user->id,$_SERVER["PHP_SELF"].'?step=4&datatoexport='.$datatoexport,$liste,1,'csv');
|
||||
$htmlform->show_documents('export','',$conf->export->dir_ouput.'/'.$user->id,$_SERVER["PHP_SELF"].'?step=4&datatoexport='.$datatoexport,$liste,1,'csv','',1);
|
||||
|
||||
print '</td><td width="50%"> </td></tr>';
|
||||
print '</table>';
|
||||
|
||||
@ -2059,10 +2059,12 @@ class Form
|
||||
* \param genallowed Génération autorisée (1/0 ou array des formats)
|
||||
* \param delallowed Suppression autorisée (1/0)
|
||||
* \param modelselected Modele à présélectionner par défaut
|
||||
* \param modelliste Tableau des modeles possibles
|
||||
* \param forcenomultilang N'affiche pas option langue meme si MAIN_MULTILANGS défini
|
||||
* \remarks Le fichier de facture détaillée est de la forme
|
||||
* REFFACTURE-XXXXXX-detail.pdf ou XXXXX est une forme diverse
|
||||
*/
|
||||
function show_documents($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$modelliste=array())
|
||||
function show_documents($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$modelliste=array(),$forcenomultilang=0)
|
||||
{
|
||||
// filedir = conf->...dir_ouput."/".get_exdir(id)
|
||||
|
||||
@ -2157,10 +2159,14 @@ class Form
|
||||
$texte=$langs->trans('Generate');
|
||||
print '</td>';
|
||||
print '<td align="center">';
|
||||
if($conf->global->MAIN_MULTILANGS)
|
||||
if($conf->global->MAIN_MULTILANGS && ! $forcenomultilang)
|
||||
{
|
||||
$this->select_lang($langs->getDefaultLang());
|
||||
}
|
||||
else
|
||||
{
|
||||
print ' ';
|
||||
}
|
||||
print '</td>';
|
||||
print '<td align="center" colspan="'.($delallowed?'2':'1').'">';
|
||||
print '<input class="button" type="submit" value="'.$texte.'">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user