Skip to content
Snippets Groups Projects
Commit 0dc43310 authored by helene ortiz's avatar helene ortiz
Browse files

fix bug: role change in collections (for inherited plugins) must only

replace first occurrence of old role : COMMAND PART
parent e4ec5e62
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ public class ControllerCommandPlugin extends ControllerPlugin {
while (it.hasNext()) {
String propertyRoleAndName = it.next();
scanProperties.remove(propertyRoleAndName);
String newPropertyRoleAndName = propertyRoleAndName.replace(oldRole, newRole);
String newPropertyRoleAndName = propertyRoleAndName.replaceFirst(oldRole, newRole);
scanProperties.add(newPropertyRoleAndName);
}
copy.clear();
......@@ -195,7 +195,7 @@ public class ControllerCommandPlugin extends ControllerPlugin {
while (it.hasNext()) {
String propertyRoleAndName = it.next();
scanDynamicGenericProperties.remove(propertyRoleAndName);
String newDynamicPropertyRoleAndName = propertyRoleAndName.replace(oldRole, newRole);
String newDynamicPropertyRoleAndName = propertyRoleAndName.replaceFirst(oldRole, newRole);
scanDynamicGenericProperties.add(newDynamicPropertyRoleAndName);
}
copy.clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment