diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 3328f7d9153..1502418f9a0 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -575,7 +575,7 @@ class Propal extends CommonObject $this->db->begin(); - $this->fetch_client(); + $this->fetch_thirdparty(); // Insertion dans la base $sql = "INSERT INTO ".MAIN_DB_PREFIX."propal ("; diff --git a/htdocs/comm/propal/contact.php b/htdocs/comm/propal/contact.php index e7e19ad818b..77180a4d22f 100644 --- a/htdocs/comm/propal/contact.php +++ b/htdocs/comm/propal/contact.php @@ -202,7 +202,7 @@ if ($id > 0 || ! empty($ref)) // Customer if ( is_null($propal->client) ) - $propal->fetch_client(); + $propal->fetch_thirdparty(); print "
| '.$langs->trans("Customer").' | '.$facture->client->getNomUrl(1).' | '; print ''; diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index f84f698eac2..fef83324fa6 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -178,7 +178,7 @@ if ($_POST['action'] == 'confirm_paiement' && $_POST['confirm'] == 'yes') $facid = $key; $fac = new Facture($db); $fac->fetch($facid); - $fac->fetch_client(); + $fac->fetch_thirdparty(); $acc->add_url_line($bank_line_id, $paiement_id, DOL_URL_ROOT.'/compta/paiement/fiche.php?id=', @@ -241,7 +241,7 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P if ($result >= 0) { - $facture->fetch_client(); + $facture->fetch_thirdparty(); $title=''; if ($facture->type != 2) $title.=$langs->trans("EnterPaymentReceivedFromCustomer"); diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 27e37f86947..50948548323 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -189,7 +189,7 @@ if ($_POST["action"] == 'addligne' && $user->rights->contrat->creer) dol_print_error($db,$commande->error); exit; } - $ret=$contrat->fetch_client(); + $ret=$contrat->fetch_thirdparty(); $date_start=''; $date_end=''; diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 5540a6c4909..db873d2b015 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -453,15 +453,6 @@ class CommonObject return $result; } - /** - * @deprecated Replaced by fetch_thirdparty - * Kept for backward compatibility - */ - function fetch_client() - { - return $this->fetch_thirdparty(); - } - /** * \brief Charge le projet d'id $this->fk_project dans this->projet * \return int <0 if KO, >=0 if OK diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index d6628bdc5be..1a2aed2789b 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -149,7 +149,7 @@ if ($_REQUEST["action"] == 'confirm_valid' && $_REQUEST["confirm"] == 'yes' && $ { $expedition = new Expedition($db); $expedition->fetch($_GET["id"]); - $expedition->fetch_client(); + $expedition->fetch_thirdparty(); $result = $expedition->valid($user); @@ -266,7 +266,7 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post // Sauvegarde le dernier modele choisi pour generer un document $shipment = new Expedition($db, 0, $_REQUEST['id']); $shipment->fetch($_REQUEST['id']); - $shipment->fetch_client(); + $shipment->fetch_thirdparty(); if ($_REQUEST['model']) { diff --git a/htdocs/fichinter/contact.php b/htdocs/fichinter/contact.php index d1ac731ab95..cae85a04470 100644 --- a/htdocs/fichinter/contact.php +++ b/htdocs/fichinter/contact.php @@ -187,7 +187,7 @@ if ($id > 0) // Customer if ( is_null($fichinter->client) ) - $fichinter->fetch_client(); + $fichinter->fetch_thirdparty(); print " | |
| ".$langs->trans("Company")." | "; print ''.$fichinter->client->getNomUrl(1).' | ||