diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index ac5bfdcabb7..3d560c9644e 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -1289,13 +1289,13 @@ class FormFile } } + print ajax_autoselect('downloadlink'); + if (GETPOST('action','aZ09') == 'editfile' && $permtoeditline) { print ''; } - print ajax_autoselect('downloadlink'); - return $nboffiles; } } @@ -1344,8 +1344,8 @@ class FormFile if (! empty($addfilterfields)) { print '