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

Répondre à