Update card.php

This commit is contained in:
Laurent Destailleur 2021-01-11 15:58:20 +01:00 committed by GitHub
parent 004ee952d9
commit d2c86578fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,8 +266,8 @@ if ($action == 'confirm_clone' && $confirm == 'yes' && ($user->rights->banque->m
$object->datev = $newdatepayment;
}
if (GETPOSTINT("clone_sens")) {
$object->sens = GETPOSTINT("clone_sens");
if (GETPOSTISSET("clone_sens")) {
$object->sens = GETPOST("clone_sens", 'int');
} else {
$object->sens = $object->sens;
}