Skip to content

Commit

Permalink
Fix lista persone attive con errore introdotto nelle precedente release.
Browse files Browse the repository at this point in the history
  • Loading branch information
criluc committed Mar 15, 2024
1 parent ebfad45 commit e8d30db
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.14.1] - 2024-03-15
### Added
- Corretto metodo che preleva la lista delle persone attive che aveva un problema
introdotto nella versione 2.14.0

## [2.14.0] - 2024-03-12
### Added
- Aggiunto piano ferie 15+2
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.14.0
2.14.1
16 changes: 8 additions & 8 deletions app/dao/PersonDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -755,14 +755,14 @@ private JPQLQuery<Person> personQuery(Optional<String> name, Set<Office> offices

final BooleanBuilder condition = new BooleanBuilder();

if (start.isPresent()) {
condition.and(affiliation.beginDate.before(JodaConverters.jodaToJavaLocalDate(start.get())));
}
if (end.isPresent()) {
condition.andAnyOf(
affiliation.endDate.goe(JodaConverters.jodaToJavaLocalDate(end.get())),
affiliation.endDate.isNull());
}
// if (start.isPresent()) {
// condition.and(affiliation.isNull().or(affiliation.beginDate.before(JodaConverters.jodaToJavaLocalDate(start.get()))));
// }
// if (end.isPresent()) {
// condition.and(affiliation.isNull().or(
// affiliation.endDate.isNull().or(
// affiliation.endDate.goe(JodaConverters.jodaToJavaLocalDate(end.get())))));
// }
filterOffices(condition, offices);
filterOnlyTechnician(condition, onlyTechnician);
condition.and(new QFilters().filterNameFromPerson(QPerson.person, name));
Expand Down
4 changes: 2 additions & 2 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

publiccodeYmlVersion: '0.2'
name: epas
releaseDate: '2024-03-12'
releaseDate: '2024-03-15'
url: 'https://github.com/consiglionazionaledellericerche/epas'
applicationSuite: epas
softwareVersion: 2.14.0
softwareVersion: 2.14.1
developmentStatus: stable
softwareType: standalone/web
platforms:
Expand Down

0 comments on commit e8d30db

Please sign in to comment.