From 08c379ad58d181c8f8cac54209f39e03bb67f055 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Apr 2016 19:15:31 +0200 Subject: [PATCH] Fix submit photo is no more hidden on smartphone. --- htdocs/contact/card.php | 4 ++-- htdocs/core/class/html.form.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index 5dbeeb951dd..a2232358a99 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -972,8 +972,8 @@ else print ''; // Photo - print ''; - print ''.fieldLabel('Photo','photoinput').''; + print ''; + print ''.$langs->trans("PhotoFile").''; print ''; if ($object->photo) { print $form->showphoto('contact',$object); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index b3822143167..67fd082c206 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5765,7 +5765,7 @@ class Form if ($caneditfield) { if ($object->photo) $ret.="
\n"; - $ret.=''; + $ret.='
'; if ($object->photo) $ret.=''; $ret.=''; $ret.='';
'.$langs->trans("Delete").'

'.$langs->trans("PhotoFile").'