diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index 8231be30d0c..009bc70ebb2 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -314,7 +314,7 @@ if ($action == 'create') { $langs->load('projects'); print ''.$langs->trans('Project').''; print img_picto('', 'project').$formproject->select_projects(($socid > 0 ? $socid : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 1, 0, 'maxwidth500'); - print ' '; + print ' '; print ''; } @@ -854,7 +854,7 @@ if ($action == 'create') { $langs->load('projects'); print ''.$langs->trans('Project').''; print img_picto('', 'project').$formproject->select_projects(($socid > 0 ? $socid : -1), $projectid, 'projectid', 0, 0, 1, 1, 0, 0, 0, '', 1, 0, 'maxwidth500'); - print ' id.($fac_rec ? '&fac_rec='.$fac_rec : '')).'">'; + print ' 0 ? '&socid='.$socid : "")).'">'; print ''; }