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

Correct path determination if origin is project

parent e102592f
Branches
Tags 3.8.0-beta
No related merge requests found
...@@ -281,7 +281,10 @@ elseif ($action == 'add' && $user->rights->fournisseur->facture->creer) ...@@ -281,7 +281,10 @@ elseif ($action == 'add' && $user->rights->fournisseur->facture->creer)
if ($element == 'order_supplier') { if ($element == 'order_supplier') {
$element = 'fourn'; $subelement = 'fournisseur.commande'; $element = 'fourn'; $subelement = 'fournisseur.commande';
} }
if ($element == 'project')
{
$element = 'projet';
}
$object->origin = $_POST['origin']; $object->origin = $_POST['origin'];
$object->origin_id = $_POST['originid']; $object->origin_id = $_POST['originid'];
...@@ -949,6 +952,7 @@ if ($action == 'create') ...@@ -949,6 +952,7 @@ if ($action == 'create')
if ($element == 'project') if ($element == 'project')
{ {
$projectid=GETPOST('originid'); $projectid=GETPOST('originid');
$element = 'projet';
} }
else if (in_array($element,array('order_supplier'))) else if (in_array($element,array('order_supplier')))
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment