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: Laurent Destailleur (eldy)
Subject: Re: [Dolibarr-dev] Bug with ldap trigger
Date: Wed, 02 Nov 2011 17:06:34 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20111031 Thunderbird/7.0.1

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 ?



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

reply via email to

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