Update myobject_card.php

This commit is contained in:
Laurent Destailleur 2019-01-16 12:46:14 +01:00 committed by GitHub
parent 865b7cbe92
commit 2ce5c89a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ if (empty($reshook))
$error=0;
$permissiontoadd = $user->rights->mymodule->write;
$permissiontodelete = $user->rights->mymodule->delete;
$permissiontodelete = $user->rights->mymodule->delete || ($permissiontoadd && $object->status == 0);
$backurlforlist = dol_buildpath('/mymodule/myobject_list.php',1);
if (empty($backtopage)) {
if (empty($id)) $backtopage = $backurlforlist;