Skip to content
Snippets Groups Projects
Commit c1ab042a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #733 from defrance69/patch-16

Update sendings.lib.php
parents 95271743 425ed19e
No related branches found
No related tags found
No related merge requests found
......@@ -108,11 +108,14 @@ function delivery_prepare_head($object)
// Show more tabs from modules
// Entries must be declared in modules descriptor with line
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
// $this->tabs = array('entity:-tabname); to remove a tab
// $this->tabs = array('entity:-tabname); to remove a tab
// complete_head_from_modules use $object->id for this link so we temporary change it
$tmpObjectId = $object->id;
$object->id = $object->origin_id;
complete_head_from_modules($conf,$langs,$object,$head,$h,'delivery');
complete_head_from_modules($conf,$langs,$object,$head,$h,'delivery','remove');
$object->id = $tmpObjectId;
return $head;
}
......@@ -322,4 +325,4 @@ function show_list_sending_receive($origin,$origin_id,$filter='')
return 1;
}
?>
\ No newline at end of file
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment