updated behaviour

This commit is contained in:
Francesco Mangiacrapa 2023-03-13 17:42:47 +01:00
parent b2f93e2167
commit 0dcdd2bf32
1 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,8 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
// APPROVE (PENDING_APPROVAL -> PUBLISH
//
//Operation (go to PENDING APPROVAL or PUBLISHED) called on the indexingProject
for (int i = 0; i < projects.size(); i++) {
Project p = projects.get(i);
@ -226,6 +228,9 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
// IF PHASE IS PENDING APPROVAL OR PUBLISHED adding toDisplayId
if ((phase.equals(Phases.PENDING_APPROVAL) || phase.equals(Phases.PUBLISHED))) {
toDisplayId.add(p.getId());
}else if(p.getId().compareTo(indexingProject.getId())==0) {
//Means that the operation is is called on indexing project from DRAFT phase to PENDING_APPROVAL or PUBLISH
toDisplayId.add(p.getId());
}
} else {