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 >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev > > > -- > Eldy (Laurent Destailleur). > --------------------------------------------------------------- > EMail: [email protected] > Web: http://www.destailleur.fr > > Dolibarr (Project leader): http://www.dolibarr.org > To make a donation for Dolibarr project via Paypal: [email protected] > AWStats (Author) : http://awstats.sourceforge.net > To make a donation for AWStats project via Paypal: [email protected] > AWBot (Author) : http://awbot.sourceforge.net > CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net > > > _______________________________________________ > Dolibarr-dev mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/dolibarr-dev _______________________________________________ Dolibarr-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
