Update card.php

This commit is contained in:
Frédéric FRANCE 2019-10-13 06:05:21 +02:00 committed by GitHub
parent bb21d048f4
commit 2d3a6d2108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -817,6 +817,7 @@ if (empty($reshook))
if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->societe->supprimer)
{
$object->fetch($socid);
$object->oldcopy = clone $object;
$result = $object->delete($socid, $user);
if ($result > 0)