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

Fix: Project validation

parent 9f5fbe78
No related branches found
No related tags found
No related merge requests found
...@@ -541,7 +541,8 @@ class Project extends CommonObject ...@@ -541,7 +541,8 @@ class Project extends CommonObject
if (!$error) if (!$error)
{ {
$this->db->commit(); $this->statut=1;
$this->db->commit();
return 1; return 1;
} }
else else
......
...@@ -314,7 +314,7 @@ if ($action == 'confirm_clone' && $user->rights->projet->creer && GETPOST('confi ...@@ -314,7 +314,7 @@ if ($action == 'confirm_clone' && $user->rights->projet->creer && GETPOST('confi
} }
else else
{ {
$object->id=$result; $object->fetch($result); // Load new object
$action='edit'; $action='edit';
$comefromclone=true; $comefromclone=true;
} }
...@@ -494,7 +494,9 @@ else ...@@ -494,7 +494,9 @@ else
// Customer // Customer
print '<tr><td>'.$langs->trans("Company").'</td><td>'; print '<tr><td>'.$langs->trans("Company").'</td><td>';
print $form->select_company($object->societe->id,'socid','',1,1); $text=$form->select_company($object->societe->id,'socid','',1,1);
$texthelp=$langs->trans("IfNeedToUseOhterObjectKeepEmpty");
print $form->textwithtooltip($text.' '.img_help(),$texthelp,1);
print '</td></tr>'; print '</td></tr>';
// Visibility // Visibility
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment