From: <hs...@us...> - 2011-12-09 16:23:20
|
Revision: 1002 http://treebase.svn.sourceforge.net/treebase/?rev=1002&view=rev Author: hshyket Date: 2011-12-09 16:23:11 +0000 (Fri, 09 Dec 2011) Log Message: ----------- Fixing error with last commit. Needed to set the study in the matrix before it saved to the database. Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/SubmissionServiceImpl.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/SubmissionServiceImpl.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/SubmissionServiceImpl.java 2011-12-09 15:00:21 UTC (rev 1001) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/service/study/SubmissionServiceImpl.java 2011-12-09 16:23:11 UTC (rev 1002) @@ -692,10 +692,10 @@ sub.getStudy().getTaxonLabelSets().addAll(data.getTaxonLabelSets()); // Store matrice: - getMatrixHome().persistAll(data.getMatrices()); for (Matrix uploadMatrix : data.getMatrices()) { uploadMatrix.setStudy(sub.getStudy()); } + getMatrixHome().persistAll(data.getMatrices()); sub.addMatrices(data.getMatrices()); getMatrixHome().flush(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |