Project

General

Profile

« Previous | Next » 

Revision 49202

1. Fix import from csv.
2. Fix pie chart issue. Change request status ( code -> value ).

View differences:

PublicationDAO.java
26 26

  
27 27
	public Publication savePublication(Publication publication) {
28 28

  
29
		for(Author a : publication.getAuthors())
30
			a.setId(DigestUtils.md5Hex(a.getFirstname()+ a.getLastname() + a.getEmail() +
31
					(a.getOrganization()!=null?a.getOrganization().getId():"") +
32
					(a.getDepartment()!=null?a.getDepartment():"")
33
			) + publication.getId());
34
		
29
		for(Author a : publication.getAuthors()){
30
			if ( a != null)
31
				a.setId(DigestUtils.md5Hex(a.getFirstname() + a.getLastname() + a.getEmail() +
32
						(a.getOrganization() != null ? a.getOrganization().getId() : "") +
33
						(a.getDepartment() != null ? a.getDepartment() : "")
34
				) + publication.getId());
35
		}
36

  
37

  
35 38
		getSession().saveOrUpdate(publication);
36 39
		return publication;
37 40
	}

Also available in: Unified diff