Merge pull request #19034 from prietojc/patch-17

FIX card.php
This commit is contained in:
Laurent Destailleur 2021-10-22 00:02:35 +02:00 committed by GitHub
commit 8bb8e92ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ if ($cancel && !$id) {
exit;
}
if ($action == 'add' && $cancel) {
if ($action == 'add' && !$cancel) {
$db->begin();
$datev = dol_mktime(12, 0, 0, GETPOST("datevmonth"), GETPOST("datevday"), GETPOST("datevyear"));