From 8cb8c90910ca11d833d226e1613ae96d1f087460 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Sep 2010 11:51:02 +0000 Subject: [PATCH] Fix: Remove not desired warning --- htdocs/core/class/html.formfile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 9ed3a32d409..f45460edd4d 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -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"));