From 795b2f3d58b5939fdc183acee1ec97671395425e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Aug 2018 03:00:11 +0200 Subject: [PATCH] FIX Delete file on smartphone --- htdocs/core/class/html.formfile.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 7c457accadf..117ec484c15 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -778,7 +778,8 @@ class FormFile $out.= ''; if ($delallowed) { - $out.= 'numoffiles++; } - // Loop on each file found + // Loop on each link found if (is_array($link_list)) { $colspan=2; @@ -1304,8 +1305,7 @@ class FormFile if (! empty($conf->dol_use_jmobile)) $useajax=0; if (empty($conf->use_javascript_ajax)) $useajax=0; if (! empty($conf->global->MAIN_ECM_DISABLE_JS)) $useajax=0; - - print ''.img_delete().''; + print ''.img_delete().''; } print "";