Commit d72b4887 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '752-project-update-can-break-overlay-upgrade' into 'devel_12.2.x'

Resolve "MINERVANET - Error Report 43"

See merge request !710
parents 337a7b7e 9f4d7b76
......@@ -10,6 +10,8 @@ minerva (12.2.0~beta.3) unstable; urgency=medium
compartments (#736)
* Bug fix: migration scripts are compatibile with postgres 9.3 version that
is default on Ubuntu 14 (#762)
* Bug fix: after project was modified it could happen that user was unable to
upload data overlay (#752)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 6 Mar 2019 14:00:00 +0200
......
......@@ -1207,15 +1207,6 @@ public class ProjectService implements IProjectService {
@Override
public void updateProject(Project project, String token) throws SecurityException {
projectDao.update(project);
if (token != null) {
Model model = modelService.getLastModelByProjectId(project.getProjectId(), token);
if (model != null) {
// TODO it's a hack to prevent lazy initialization of the project
project.getLayouts();
project.getOverviewImages();
model.setProject(project);
}
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment