Skip to content
Snippets Groups Projects
Commit 58008cef authored by Gauthier's avatar Gauthier
Browse files

NEW : display linked object in edit mode when we create an event from an order, propal...

parent 1fcf10fd
No related branches found
No related tags found
No related merge requests found
...@@ -746,6 +746,9 @@ if ($action == 'create') ...@@ -746,6 +746,9 @@ if ($action == 'create')
} }
if(!empty($origin) && !empty($originid)) if(!empty($origin) && !empty($originid))
{ {
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
print '<tr><td>'.$langs->trans("LinkedObject").'</td>';
print '<td colspan="3">'.dolGetElementUrl($originid,$origin,1).'</td></tr>';
print '<input type="hidden" name="fk_element" size="10" value="'.GETPOST('originid').'">'; print '<input type="hidden" name="fk_element" size="10" value="'.GETPOST('originid').'">';
print '<input type="hidden" name="elementtype" size="10" value="'.GETPOST('origin').'">'; print '<input type="hidden" name="elementtype" size="10" value="'.GETPOST('origin').'">';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment