Fixes calendrier #489

Closed
vincent.vandeme wants to merge 3 commits from v1.4-fix-calendrier into v1.4
Showing only changes of commit 5656b25c6d - Show all commits

View File

@ -329,8 +329,8 @@ export class RdDCalendrier extends Application {
/* -------------------------------------------- */
findHeure(heure) {
heure = Grammar.toLowerCaseNoAccent(heure);
let parHeureOuLabel = Object.values(heuresDef).filter(it => (it.heure+1) == heure || Grammar.toLowerCaseNoAccentNoSpace(it.label) == heure);
heure = Grammar.toLowerCaseNoAccentNoSpace(heure);
let parHeureOuLabel = Object.values(heuresDef).filter(it => (it.heure + 1) == heure || Grammar.toLowerCaseNoAccentNoSpace(it.label) == heure);
if (parHeureOuLabel.length == 1) {
return parHeureOuLabel[0];
}