2
0
forked from Wavyzz/dolibarr

translations

This commit is contained in:
Cédric Salvador
2013-07-30 17:47:24 +02:00
committed by Raphaël Doursenaud
parent b625b1843e
commit b158e8bb74
5 changed files with 23 additions and 5 deletions

View File

@@ -1060,10 +1060,11 @@ function dol_add_file_process($upload_dir, $allowoverwrite=0, $donotupdatesessio
$linkObject = new Link($db);
$linkObject->entity = $conf->entity;
$linkObject->url = $link;
$linkObject->objecttype = GETPOST('objecttype', 'alpha');
$linkObject->objectid = GETPOST('objectid', 'int');
$linkObject->label = GETPOST('label', 'alpha');
$linkObject->objecttype = GETPOST('objecttype', 'alpha');
$linkObject->objectid = GETPOST('objectid', 'int');
$linkObject->label = GETPOST('label', 'alpha');
$res = $linkObject->create($user);
$langs->load('link');
if ($res > 0) {
setEventMessage($langs->trans("LinkComplete"));
} else {