Fix Initialise id to 0 and ref to ''
This commit is contained in:
parent
c31c883a91
commit
b072966cc8
1 changed files with 2 additions and 1 deletions
|
|
@ -402,7 +402,8 @@ if ($action == 'confirm_clone' && $confirm == 'yes' && $permissiontoadd) {
|
|||
|
||||
if ($object->id > 0) {
|
||||
$object->paye = 0;
|
||||
$object->id = $object->ref = null;
|
||||
$object->id = 0;
|
||||
$object->ref = '';
|
||||
|
||||
if (GETPOST('amount', 'alphanohtml')) {
|
||||
$object->amount = price2num(GETPOST('amount', 'alphanohtml'), 'MT', 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue