Skip to content

Commit

Permalink
Merge branch '1373-il-cambio-dei-parametri-nel-menu-in-alcuni-csai-fo…
Browse files Browse the repository at this point in the history
…rnisce-errore' into 'master'

Resolve "Il cambio dei parametri nel menu in alcuni casi fornisce errore"

Closes #1373

See merge request epas/epas!1606
  • Loading branch information
Dario Tagliaferri committed Sep 16, 2022
2 parents 41a49ac + e10e582 commit 4a6e838
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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.5.4] - UNRELEASED
## [2.5.4] - 2022-09-16
### Added
- Aggiunta la possibilità di disattivare e cancellare gli orari di lavoro predefiniti
non utilizzati.
Expand All @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
nell'inserimento di una richiesta di missione o di rimborso
- Aggiunto codice 35R ai codici che riducono le ferie
### Changed
- Reso più robusto il cambio di menu in caso di giorno/mese/anno corrente mancante
- Corretto orrdinamento delle datatable con data e ora in italiano
- Aggiunti codici LAGILE e LAGILE in esportazione situazione mensile relativo a presenza a
lavoro e in smart working
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.4-rc5
2.5.4
14 changes: 11 additions & 3 deletions app/controllers/SwitchTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package controllers;

import com.google.common.collect.Maps;
import java.time.LocalDate;
import java.util.Map;
import models.Office;
import models.Person;
Expand All @@ -38,9 +39,16 @@ public class SwitchTemplate extends Controller {

private static void executeAction(String action) {

Integer year = Integer.parseInt(session.get("yearSelected"));
Integer month = Integer.parseInt(session.get("monthSelected"));
Integer day = Integer.parseInt(session.get("daySelected"));
LocalDate now = LocalDate.now();
Integer year =
session.get("yearSelected") != null ?
Integer.parseInt(session.get("yearSelected")) : now.getYear();
Integer month =
session.get("monthSelected") != null ?
Integer.parseInt(session.get("monthSelected")) : now.getMonthValue();
Integer day =
session.get("daySelected") != null ?
Integer.parseInt(session.get("daySelected")) : now.getDayOfMonth();
Long personId = Long.parseLong(session.get("personSelected"));
Long officeId = Long.parseLong(session.get("officeSelected"));

Expand Down
6 changes: 3 additions & 3 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: '2022-08-16'
releaseDate: '2022-09-16'
url: 'https://github.com/consiglionazionaledellericerche/epas'
applicationSuite: epas
softwareVersion: 2.5.3
softwareVersion: 2.5.4
developmentStatus: stable
softwareType: standalone/web
platforms:
Expand Down Expand Up @@ -42,7 +42,7 @@ dependsOn:
open:
- name: PostgreSQL
versionMin: "10.0"
optional: no
optional: false
it:
riuso:
codiceIPA: cnr
Expand Down

0 comments on commit 4a6e838

Please sign in to comment.