Update card.php

This commit is contained in:
Frédéric FRANCE 2019-09-16 20:59:13 +02:00 committed by GitHub
parent 67b73cf0e6
commit f369c1a80a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -608,6 +608,7 @@ if ($action == 'update')
if ($action == 'confirm_delete' && GETPOST("confirm") == 'yes')
{
$object->fetch($id);
$object->fetch_optionals();
if ($user->rights->agenda->myactions->delete
|| $user->rights->agenda->allactions->delete)