dolibarr-dev
[Top][All Lists]
Advanced

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

Re: [Dolibarr-dev] Bug with ldap trigger


From: Jean-François FERRY
Subject: Re: [Dolibarr-dev] Bug with ldap trigger
Date: Thu, 03 Nov 2011 10:18:21 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

Le mer. 02 nov. 2011 17:06:34 CET, Laurent Destailleur (eldy) a écrit :
> Il vaudrait mieux corriger pour que le oldcopy soit défini.
>
> Si tu ajoutes
>             $this->oldcopy=dol_clone($this);
> dans la methode setPassword avant l'appel du trigger, est-ce que cela
> résoud ?

Oui. 
J'ai vu que tu avais commité la modif, merci!

P.S : la liste est fr maintenant ?



>
>
>
> Le 02/11/2011 00:08, Jean-François FERRY a écrit :
>> Hello,
>>
>> When I do "Regenerate and send new password" with ldap module
>> enabled, I've got this error :
>>
>> Fatal error: Call to a member function _load_ldap_info() on a
>> non-object in
>> htdocs/includes/triggers/interface_modLdap_Ldapsynchro.class.php on
>> line 164
>>
>> the lines contains '$oldinfo=$object->oldcopy->_load_ldap_info();'
>>
>> The line on github :
>> https://github.com/Dolibarr/dolibarr/blob/master/htdocs/includes/triggers/interface_modLdap_Ldapsynchro.class.php#L164
>>
>> By adding the following lines before (line 163), it works again :
>>
>> $class = get_class($object);
>> $object->oldcopy = new $class($object->db);
>>
>> Same bug on other triggers with oldcopy usage.
>>
>>
>> Dolibarr version : 3.1-rc
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev





reply via email to

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