Skip to content

Commit

Permalink
SAK-33767: Drag and dropping from h1 to h3 causes error (sakaiproject…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaswilson100 authored and ottenhoff committed Dec 20, 2017
1 parent b024123 commit 6a06acc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public String getValidMessage(List<CitationCollectionOrder> citationCollectionOr
|| citationCollectionOrder.getSectiontype().equals(CitationCollectionOrder.SectionType.DESCRIPTION)) && citationCollectionOrder.getCitationid()!=null){
return "Invalid nested list: SECTION_TYPE is a 'HEADING' or a 'DESCRIPTION' and CITATION_ID is null for collection with id: " + collection.getId();
}
// 3. Check that if VALUE column is not null then section type column is not null and CITATION_ID is null
if (citationCollectionOrder.getValue()!=null && (citationCollectionOrder.getSectiontype()==null || citationCollectionOrder.getCitationid()!=null)){
return "Invalid nested list: VALUE is not null but either SECTION_TYPE is null or CITATION_ID is not null for collection with id: " + collection.getId();
// 3. Check that if VALUE column is not null then section type column is not null
if (citationCollectionOrder.getValue()!=null && citationCollectionOrder.getSectiontype()==null){
return "Invalid nested list: VALUE is not null but either SECTION_TYPE is null for collection with id: " + collection.getId();
}

}
Expand Down

0 comments on commit 6a06acc

Please sign in to comment.