Bug #4761
closedNavigation vers l'organisation parente
100%
Description
Lorsque les noms des organisations contiennent de redondance (ex: OU=ELECTIONS - AFFAIRES GENERALES ET MILITAIRES,OU=AFFAIRES GENERALES) alors le retour vers l'organisation parente ne fonctionne pas.
Pour corriger cela il faut modifier la classe OrganizationChartLdapServiceImpl, en remplaçant le code :
int indexStart = unit.getCompleteName().indexOf(parentName);
String parentOu = unit.getCompleteName().substring(indexStart - 3);
par celui-ci :
int indexStart = unit.getCompleteName().toUpperCase().indexOf(ou.toUpperCase()+"="+parentName.toUpperCase());
String parentOu = unit.getCompleteName().substring(indexStart);
Related issues
Updated by Nicolas Eysseric over 7 years ago
- Status changed from New to Resolved
- Assignee set to Nicolas Eysseric
- Target version set to Version 5.12.4
- % Done changed from 0 to 100
Il est à noter que cette correction est déjà en production chez le client concerné.
Traité par PR : https://github.com/Silverpeas/Silverpeas-Components/pull/246
Updated by Yohann Chastagnier over 7 years ago
- Status changed from Resolved to Closed
Validé et intégré.