From 58008cef94e2a3b1513cb5e588a268423fe3f597 Mon Sep 17 00:00:00 2001 From: Gauthier <gauthier.verdol@atm-consulting.fr> Date: Thu, 23 Apr 2015 15:54:49 +0200 Subject: [PATCH] NEW : display linked object in edit mode when we create an event from an order, propal... --- htdocs/comm/action/card.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index c15b1fe4f32..447d2264f41 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -746,6 +746,9 @@ if ($action == 'create') } 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="elementtype" size="10" value="'.GETPOST('origin').'">'; } -- GitLab