Revision 51755
Added by Konstantina Galouni about 6 years ago
modules/uoa-admin-tools/src/main/java/eu/dnetlib/uoaadmintools/controllers/EntityController.java | ||
---|---|---|
68 | 68 |
} |
69 | 69 |
|
70 | 70 |
@RequestMapping(value = "/entity/save", method = RequestMethod.POST) |
71 |
public CommunityEntity insertEntity(@RequestBody CommunityEntity communityEntity) {
|
|
72 |
Entity entity = this.getEntityByCommunityEntity(communityEntity); |
|
71 |
public CommunityEntity insertEntity(@RequestBody Entity entity) {
|
|
72 |
//Entity entity = this.getEntityByCommunityEntity(communityEntity);
|
|
73 | 73 |
Entity savedEntity = entityDAO.save(entity); |
74 |
communityEntity.setId(savedEntity.getId());
|
|
74 |
CommunityEntity communityEntity = new CommunityEntity(savedEntity);
|
|
75 | 75 |
|
76 | 76 |
// add entity in communities |
77 | 77 |
List<Community> communities = communityDAO.findAll(); |
Also available in: Unified diff
1. Bug fix in entity/save (portal sends entity, not CommunityEntity).