Fix: Pb into form output
Conflicts: htdocs/core/class/html.formfile.class.php
This commit is contained in:
parent
8410ad1933
commit
91068a4476
@ -442,15 +442,17 @@ class FormFile
|
||||
|
||||
// Button
|
||||
$out.= '<th align="center" colspan="'.($delallowed?'2':'1').'" class="formdocbutton liste_titre">';
|
||||
$out.= '<input class="button" id="'.$forname.'_generatebutton"';
|
||||
$out.= ' type="submit" value="'.$buttonlabel.'"';
|
||||
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $out.= ' disabled="disabled"';
|
||||
$out.= '>';
|
||||
$genbutton = '<input class="button" id="'.$forname.'_generatebutton"';
|
||||
$genbutton.= ' type="submit" value="'.$buttonlabel.'"';
|
||||
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $genbutton.= ' disabled="disabled"';
|
||||
$genbutton.= '>';
|
||||
if ($allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid')
|
||||
{
|
||||
$langs->load("errors");
|
||||
$out.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
|
||||
$langs->load("errors");
|
||||
$genbutton.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
|
||||
}
|
||||
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton='';
|
||||
$out.= $genbutton;
|
||||
$out.= '</th>';
|
||||
|
||||
if ($printer) $out.= '<th></th>';
|
||||
|
||||
@ -1793,7 +1793,6 @@ else
|
||||
}
|
||||
|
||||
print '</div>'."\n";
|
||||
print '<br>';
|
||||
|
||||
if (empty($conf->global->SOCIETE_DISABLE_BUILDDOC))
|
||||
{
|
||||
@ -1821,6 +1820,8 @@ else
|
||||
print '<br>';
|
||||
}
|
||||
|
||||
print '<div class="fichecenter"><br></div>';
|
||||
|
||||
// Subsidiaries list
|
||||
$result=show_subsidiaries($conf,$langs,$db,$object);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user