Fix: Remove not desired warning

This commit is contained in:
Laurent Destailleur 2010-09-01 11:51:02 +00:00
parent a2cca4c215
commit 8cb8c90910

View File

@ -363,7 +363,7 @@ class FormFile
print ' type="submit" value="'.$buttonlabel.'"';
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) print ' disabled="true"';
print '>';
if ($allowgenifempty && ! is_array($modellist) && empty($modellist))
if ($allowgenifempty && ! is_array($modellist) && empty($modellist) && $modulepart != 'unpaid')
{
$langs->load("errors");
print ' '.img_warning($langs->trans("WarningNoDocumentModelActivated"));