diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 69d85a25e7c..e69b2dfb8da 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -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 = ''.$langs->trans("BackToList").''; - $morehtmlref = '
'; // Ref customer $morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string', '', 0, 1);