simplification

This commit is contained in:
Bahfir Abbes 2019-01-09 18:47:43 +01:00 committed by GitHub
parent 7262f90519
commit 865b7cbe92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,11 +119,11 @@ if (empty($reshook))
$permissiontoadd = $user->rights->mymodule->write;
$permissiontodelete = $user->rights->mymodule->delete;
$backurlforlist = dol_buildpath('/mymodule/myobject_list.php',1);
if (empty($backtopage)) {
if (empty($id)) $backtopage = dol_buildpath('/mymodule/myobject_list.php',1);
if (empty($id)) $backtopage = $backurlforlist;
else $backtopage = dol_buildpath('/mymodule/myobject_card.php',1).($id > 0 ? $id : '__ID__');
}
$backurlforlist = dol_buildpath('/mymodule/myobject_list.php',1);
}
$triggermodname = 'MYMODULE_MYOBJECT_MODIFY'; // Name of trigger action code to execute when we modify record
// Actions cancel, add, update, delete or clone