Following PR#15336: it should not be possible to modify the third party of an invoice
This commit is contained in:
parent
4689d42afd
commit
bf27c56fa7
@ -345,15 +345,6 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
elseif ($action == 'set_thirdparty' && $usercancreate)
|
|
||||||
{
|
|
||||||
$object->fetch($id);
|
|
||||||
$object->setValueFrom('fk_soc', $socid, '', null, 'int', '', $user, 'BILL_MODIFY');
|
|
||||||
|
|
||||||
header('Location: '.$_SERVER["PHP_SELF"].'?facid='.$id);
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
elseif ($action == 'classin' && $usercancreate)
|
elseif ($action == 'classin' && $usercancreate)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user