Skip to content

Commit

Permalink
Merge branch 'A2-1101-Bug-after-delete-comment-feedback' into aiccra-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalPrime committed Feb 5, 2025
2 parents d5f7af0 + e99c16b commit 4f06c3c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.cgiar.ccafs.marlo.utils.APConfig;

import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

import javax.inject.Inject;
Expand All @@ -49,19 +50,22 @@ public class FeedbackStatusAction extends BaseAction {

private static final Logger LOG = LoggerFactory.getLogger(FeedbackStatusAction.class);

// Report name in bi-reports database table
private static final String REPORT_NAME = "QA process for PMC";

// Managers
private ProjectManager projectManager;
private String transaction;

private String transaction;
// Front-end
private long projectID;
private GlobalUnit loggedCrp;
private Project project;
private Project projectDB;

private Project projectDB;
private BiReportsManager biReportsManager;
private BiParametersManager biParametersManager;

private BiParametersManager biParametersManager;
// Front-end
private List<BiReports> biReports;
private List<BiParameters> biParameters;
Expand Down Expand Up @@ -118,9 +122,9 @@ public String getTransaction() {

@Override
public void prepare() throws Exception {
biReports = biReportsManager.findAll().stream()
.filter(bi -> bi != null && Objects.equals(bi.getReportName(), REPORT_NAME)).collect(Collectors.toList());

biReports = biReportsManager.findAll().stream().filter(bi -> bi != null && bi.getReportName().equals("Feedback"))
.collect(Collectors.toList());
biParameters = biParametersManager.findAll();

// Get current CRP
Expand Down
2 changes: 1 addition & 1 deletion marlo-web/src/main/resources/custom/aicrra.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ marloRequestCreation.webSiteLink.placeholder=https://example.com

# Footer
footer.contactEmail=MARLOSupport@cgiar.org
footer.copyrighAlert=Copyright &#169; 2013-2024 Alliance of Bioversity International and CIAT.
footer.copyrighAlert=Copyright &#169; 2013-{0} Alliance of Bioversity International and CIAT.
footer.developedBy=Developed by the Innovation and Business Development (IBD) team of the Technology Integration Unit.
footer.rightsReserved=Some rights reserved
footer.report.issue=Please report any system problems and send us your feedback {0}
Expand Down
2 changes: 1 addition & 1 deletion marlo-web/src/main/resources/global.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ marloRequestCreation.webSiteLink.placeholder=https://example.com

# Footer
footer.contactEmail=MARLOSupport@cgiar.org
footer.copyrighAlert=Copyright &#169; 2013-2024 Alliance of Bioversity International and CIAT.
footer.copyrighAlert=Copyright &#169; 2013-{0} Alliance of Bioversity International and CIAT.
footer.developedBy=Developed by the Innovation and Business Development (IBD) team of the Technology Integration Unit.
footer.rightsReserved=Some rights reserved
footer.report.issue=Please report any system problems and send us your feedback {0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
[#-- Copyright --]
<div class="copyRight">
<hr />
<span>[@s.text name="footer.copyrighAlert" /]</span><br />
<span>[@s.text name="footer.copyrighAlert"][@s.param]${.now?string("yyyy")}[/@s.param][/@s.text]</span><br />
<span style="opacity:0.7;">[@s.text name="footer.developedBy" /]<span><br>
<span style="opacity:0.5;">[@s.text name="footer.rightsReserved" /]</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,9 @@ function hideShowOptionButtons(block, status) {
block.find('img.clarificationCommentBtn').hide();
block.find('div.deleteCommentBtn').show();
block.find('.containerSentCommentBtn').hide();
block.find('.correctCommentBtn').show();
block.find('.editCommentBtn').show();
block.find('.dismissCommentBtn').show();
block.find('.commentTitle').css('font-style', 'oblique');
block.find('.commentTitle').css('font-weight', '200');
block.find('.commentReadonly').css('font-style', 'oblique');
Expand Down

0 comments on commit 4f06c3c

Please sign in to comment.