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

Merge pull request #3329 from atm-gauthier/3.7_fix_add_user_on_event_in_create_mode

FIX : When we add an user on event in create mode, we lose linked object
parents bd4a31c4 aaa9d85d
Branches
No related tags found
No related merge requests found
...@@ -751,6 +751,8 @@ if ($action == 'create') ...@@ -751,6 +751,8 @@ if ($action == 'create')
print '<td colspan="3">'.dolGetElementUrl($originid,$origin,1).'</td></tr>'; 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').'">';
print '<input type="hidden" name="originid" size="10" value="'.GETPOST('originid').'">';
print '<input type="hidden" name="origin" size="10" value="'.GETPOST('origin').'">';
} }
if (GETPOST("datep") && preg_match('/^([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])$/',GETPOST("datep"),$reg)) if (GETPOST("datep") && preg_match('/^([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])$/',GETPOST("datep"),$reg))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment