FIX #15336 set_thirdparty was not used anymore. Removed dead code.

This commit is contained in:
Laurent Destailleur 2020-11-09 15:28:18 +01:00
parent 0f90cee597
commit 1d90ee2765

View File

@ -1273,15 +1273,6 @@ if (empty($reshook))
if ($error) $action = 'edit_extras';
}
if ($action == 'set_thirdparty' && $usercancreate)
{
$object->fetch($id);
$object->setValueFrom('fk_soc', $socid, '', '', 'date', '', $user, 'ORDER_MODIFY');
header('Location: '.$_SERVER["PHP_SELF"].'?id='.$id);
exit();
}
// add lines from objectlinked
if ($action == 'import_lines_from_object'
&& $usercancreate
@ -2025,7 +2016,6 @@ if ($action == 'create' && $usercancreate)
$linkback = '<a href="'.DOL_URL_ROOT.'/commande/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
$morehtmlref = '<div class="refidno">';
// Ref customer
$morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string', '', 0, 1);