Skip to content

Commit

Permalink
Bug: Sections were missing in peer review history
Browse files Browse the repository at this point in the history
  • Loading branch information
summitt committed Dec 18, 2024
1 parent d9396b7 commit 64ccc84
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
changelog:
categories:
- title: 🎉 🚀 Features 🎉 🚀
- title: 🎉 🚀 Upgrades 🎉 🚀
labels:
- enhancement
- title: 🐛 Bugfixes 🐛
Expand Down
12 changes: 6 additions & 6 deletions WebContent/WEB-INF/jsp/assessment/AssessmentTextEditors.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@
<option value="<s:property value='id'/>" title="<s:property value='user.fname'/> <s:property value='user.lname'/>"
global="<s:property value="global"/>"
<s:if test="global == true">
class='globalTemplate'>
class='globalTemplate'
</s:if><s:else>
class='userTemplate'>
</s:else>
class='userTemplate'
</s:else>>
<s:property value="title"/>
</option>
</s:iterator>
Expand Down Expand Up @@ -338,10 +338,10 @@
<option value="<s:property value='id'/>" title="<s:property value='user.fname'/> <s:property value='user.lname'/>"
global="<s:property value='global'/>"
<s:if test="global == true">
class='globalTemplate'>
class='globalTemplate'
</s:if><s:else>
class='userTemplate'>
</s:else>
class='userTemplate'
</s:else>>
<s:property value='title'/>
</option>
</s:iterator>
Expand Down
11 changes: 11 additions & 0 deletions src/com/fuse/actions/assessment/TrackChanges.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,17 @@ public String getPRHistory() throws ParseException {
&& !pr.getAssessment().getAssessor().stream().anyMatch(usr -> usr.getId() == user.getId())) {
return ERROR;
}

this.sections.add("Default");
if(ReportFeatures.allowSections()) {

SystemSettings ems = (SystemSettings) em.createQuery("from SystemSettings").getResultList().stream()
.findFirst().orElse(null);

for(String section : ReportFeatures.getFeatures(ems.getFeatures())){
this.sections.add(section);
}
}

asmt = com.exportAssessment(em);
asmt.setAnswers(pr.getAssessment().getAnswers());
Expand Down

0 comments on commit 64ccc84

Please sign in to comment.