simplification
This commit is contained in:
parent
7262f90519
commit
865b7cbe92
@ -119,11 +119,11 @@ if (empty($reshook))
|
|||||||
|
|
||||||
$permissiontoadd = $user->rights->mymodule->write;
|
$permissiontoadd = $user->rights->mymodule->write;
|
||||||
$permissiontodelete = $user->rights->mymodule->delete;
|
$permissiontodelete = $user->rights->mymodule->delete;
|
||||||
|
$backurlforlist = dol_buildpath('/mymodule/myobject_list.php',1);
|
||||||
if (empty($backtopage)) {
|
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__');
|
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
|
$triggermodname = 'MYMODULE_MYOBJECT_MODIFY'; // Name of trigger action code to execute when we modify record
|
||||||
|
|
||||||
// Actions cancel, add, update, delete or clone
|
// Actions cancel, add, update, delete or clone
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user