Merge pull request #9177 from ATM-Nicolas/fix_preselect_project

FIX : Keep same project when creating shipping from order
This commit is contained in:
Juanjo Menent 2018-08-02 11:18:39 +02:00 committed by GitHub
commit ce49230d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -988,6 +988,7 @@ if ($action == 'create')
if (! empty($conf->projet->enabled))
{
$projectid = GETPOST('projectid','int')?GETPOST('projectid','int'):0;
if(empty($projectid) && ! empty($object->fk_project)) $projectid = $object->fk_project;
if ($origin == 'project') $projectid = ($originid ? $originid : 0);
$langs->load("projects");