bug_24754 #12

Merged
francesco.mangiacrapa merged 7 commits from bug_24754 into master 2023-03-14 11:23:06 +01:00
1 changed files with 10 additions and 7 deletions
Showing only changes of commit b2f93e2167 - Show all commits

View File

@ -210,20 +210,23 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
}
log.trace("Checking from LAST.. ");
//I'm ignoring the phase, this code is called on
// SUBMIT (DRAFT-> PENDING_APPROVAL)
// APPROVE (PENDING_APPROVAL -> PUBLISH
//
for (int i = 0; i < projects.size(); i++) {
Project p = projects.get(i);
//String phase = p.getLifecycleInformation().getPhase();
String phase = p.getLifecycleInformation().getPhase();
// IS TO DISPLAY EMPTY? Step into only once
// IS TO DISPLAY EMPTY? Step into only once. Indexing the first project that is in PENDING APPROVAL or PUBLISHED
if (toDisplayId.isEmpty()) {
// IF PHASE IS PENDING APPROVAL OR PUBLISHED adding toDisplayId
// if ((phase.equals(Phases.PENDING_APPROVAL) || phase.equals(Phases.PUBLISHED))) {
// toDisplayId.add(p.getId());
// }
toDisplayId.add(p.getId());
if ((phase.equals(Phases.PENDING_APPROVAL) || phase.equals(Phases.PUBLISHED))) {
toDisplayId.add(p.getId());
}
} else {