Merge pull request #15337 from ATM-Consulting/FIX_12.0_remove_set_thirdparty_action_on_invoice

Following PR#15336: it should not be possible to modify the third par…
This commit is contained in:
Laurent Destailleur 2020-11-09 19:08:14 +01:00 committed by GitHub
commit 59abed9153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{
$object->fetch($id);