Skip to content

Commit

Permalink
FIX : project was not retrieved on invoice creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Oct 19, 2015
1 parent fd3ba13 commit 9e9f32e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions htdocs/compta/facture.php
Expand Up @@ -1877,7 +1877,7 @@
$objectsrc->fetch_lines();
$objectsrc->fetch_thirdparty();

$projectid = (! empty($objectsrc->fk_project) ? $objectsrc->fk_project : '');
$projectid = (! empty($projectid) ? $projectid : $objectsrc->fk_project);
$ref_client = (! empty($objectsrc->ref_client) ? $objectsrc->ref_client : '');
$ref_int = (! empty($objectsrc->ref_int) ? $objectsrc->ref_int : '');

Expand Down Expand Up @@ -2257,9 +2257,6 @@
// Project
if (! empty($conf->projet->enabled) && $socid > 0)
{
$projectid = GETPOST('projectid')?GETPOST('projectid'):0;
if ($origin == 'project') $projectid = ($originid ? $originid : 0);

$langs->load('projects');
print '<tr><td>' . $langs->trans('Project') . '</td><td colspan="2">';
$numprojet = $formproject->select_projects($soc->id, $projectid, 'projectid', 0);
Expand Down

0 comments on commit 9e9f32e

Please sign in to comment.