FIX #15336 set_thirdparty was not used anymore. Removed dead code.
This commit is contained in:
parent
0f90cee597
commit
1d90ee2765
@ -1273,15 +1273,6 @@ if (empty($reshook))
|
|||||||
if ($error) $action = 'edit_extras';
|
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
|
// add lines from objectlinked
|
||||||
if ($action == 'import_lines_from_object'
|
if ($action == 'import_lines_from_object'
|
||||||
&& $usercancreate
|
&& $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>';
|
$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">';
|
$morehtmlref = '<div class="refidno">';
|
||||||
// Ref customer
|
// Ref customer
|
||||||
$morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string', '', 0, 1);
|
$morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string', '', 0, 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user