Permalink
Browse files

Fix: disabled ajax for the moment

  • Loading branch information...
1 parent 0328f0d commit a108abdddaafbe5c1ff5edd0ce44fd0c57787a21 Regis Houssin committed Nov 1, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 htdocs/product/photos.php
@@ -157,12 +157,12 @@
/*
* 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->nbphoto < 1)
{
print '<br>';
- print '<table width="100%" valign="top" align="center" border="0" cellpadding="2" cellspacing="2">'; print '<tr align=center valign=middle border=1><td class="photo">';
+ print '<table width="100%" valign="top" align="center" border="0" cellpadding="2" cellspacing="2">';
+ print '<tr align=center valign=middle border=1><td class="photo">';
print "<br>".$langs->trans("NoPhotoYet")."<br><br>";
print '</td></tr>';
print '</table>';

0 comments on commit a108abd

Please sign in to comment.