Fix: Better error place

This commit is contained in:
Laurent Destailleur 2011-04-17 21:37:35 +00:00
parent cbe899690b
commit 808cd3b77d

View File

@ -356,11 +356,16 @@ foreach ($conf->file->dol_document_root as $dirroot)
print '<td align="center">'; print '<td align="center">';
print $html->textwithpicto('',$htmltooltip,1,0); print $html->textwithpicto('',$htmltooltip,1,0);
if ($conf->global->FACTURE_ADDON.'.php' == $file) // If module is the one used, we show existing errors
{
if (! empty($module->error)) dol_htmloutput_errors($module->error,'');
}
print '</td>'; print '</td>';
print "</tr>\n"; print "</tr>\n";
if (! empty($module->error)) dol_htmloutput_errors($module->error,'');
} }
} }
} }