diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php
index 803485857b8..bbb544ec253 100644
--- a/htdocs/product/photos.php
+++ b/htdocs/product/photos.php
@@ -157,12 +157,12 @@ if ($object->id)
/*
* Add a photo
- */
+ */
if ($action == 'ajout_photo' && ($user->rights->produit->creer || $user->rights->service->creer) && ! empty($conf->global->MAIN_UPLOAD_DOC))
{
// Affiche formulaire upload
$formfile=new FormFile($db);
- $formfile->form_attach_new_file($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans("AddPhoto"),1);
+ $formfile->form_attach_new_file($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans("AddPhoto"), 1, 0, 1, 50, $object, '', false); // FIXME Regis: disabled for the moment
}
// Affiche photos
@@ -179,7 +179,8 @@ if ($object->id)
if ($object->nbphoto < 1)
{
print '
';
- print '
'; print '';
+ print '';
+ print '';
print " ".$langs->trans("NoPhotoYet")."
";
print ' | ';
print ' ';
|