Skip to content
Snippets Groups Projects
Commit aa232d57 authored by srosse's avatar srosse
Browse files

OO-2024: reuse existent account manager's property (patch S. Clemenz)

parent a1841cf8
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,12 @@ public class ProjectGroupManagerImpl implements ProjectGroupManager {
}
log.debug("createAndPersistBusinessGroup businessgroup=" + accountManagerGroup);
saveAccountManagerGroupKey(accountManagerGroup.getKey(), cpm, courseNode);
if (accountManagerGroupProperty != null) {
accountManagerGroupProperty.setLongValue(accountManagerGroup.getKey());
cpm.updateProperty(accountManagerGroupProperty);
} else {
saveAccountManagerGroupKey(accountManagerGroup.getKey(), cpm, courseNode);
}
log.debug("created account-manager default businessgroup=" + accountManagerGroup);
}
} catch (AssertException e) {
......
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