Skip to content

Commit

Permalink
Reload object when product clone failed (cause of ref already exists) if
Browse files Browse the repository at this point in the history
not done result is blanck pages (header wannot be rewrite (location
herder index.php) around line 1542
  • Loading branch information
FHenry committed Oct 16, 2014
1 parent 722f6e0 commit eeffe4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/product/fiche.php
Expand Up @@ -422,10 +422,10 @@
$_error++;
$action = "";

$mesg='<div class="error">'.$langs->trans("ErrorProductAlreadyExists",$object->ref);
$mesg=$langs->trans("ErrorProductAlreadyExists",$object->ref);
$mesg.=' <a href="'.$_SERVER["PHP_SELF"].'?ref='.$object->ref.'">'.$langs->trans("ShowCardHere").'</a>.';
$mesg.='</div>';
setEventMessage($mesg, 'errors');
$object->fetch($id);
//dol_print_error($object->db);
}
else
Expand Down

0 comments on commit eeffe4e

Please sign in to comment.