dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Duplicated code?


From: Laurent Destailleur (eldy)
Subject: Re: [Dolibarr-dev] Duplicated code?
Date: Sat, 12 Jan 2013 15:40:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

No, it's not same update.
First it deletes the link to thirdparty for other members linked to it
Then it link the member (not same member of delete) to the new thirdparty.

Goal is to have on link between memeber and thirdparty for each thirdparty.

Le 11/01/2013 17:28, Marcos García a écrit :
Hi,

I've been doing tests for adherent.class.php and I found a piece of code that I think it is duplicated. In branch develop or 3.3, file /adherents/class/adherent.class.php, function setThirdParty lines 953-965. I see it deletes the previous fk_soc field and then it updates it with a new one. Wouldn't be the same changing or removing in the same query?

Regards,
 
Marcos García
address@hidden


_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


-- 
Eldy (Laurent Destailleur).

EMail: address@hidden
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]