Skip to content
Snippets Groups Projects
Commit 2c6aeac6 authored by Gauthier's avatar Gauthier
Browse files

FIX : Societe::set_parent() function needs societe object to be fetched to update parent

parent e79fe740
No related branches found
No related tags found
No related merge requests found
......@@ -2468,6 +2468,7 @@ class Societe extends CommonObject
$resql=$this->db->query($sql);
if ($resql)
{
$this->parent = $id;
return 1;
}
else
......
......@@ -649,6 +649,7 @@ if (empty($reshook))
// Set parent company
if ($action == 'set_thirdparty' && $user->rights->societe->creer)
{
$object->fetch($socid);
$result = $object->set_parent(GETPOST('editparentcompany','int'));
}
......
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