-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QA] Conversion en nombre entier pour le nombre de personnes #2368
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test et relecture OK.
Mais je me demande s'il ne faut pas faire la même chose pour le nombre de pièces ? (je me suis trompée en testant, et je me suis rendue compte qu'on pouvait aussi mettre un float pour le nombre de pièces)
if (!empty($compositionLogementNombrePersonnes) && is_numeric($compositionLogementNombrePersonnes)) { | ||
$compositionLogementNombrePersonnes = ceil($compositionLogementNombrePersonnes); | ||
} | ||
|
||
$this->signalement | ||
->setTypeCompositionLogement( | ||
$this->typeCompositionLogementFactory->createFromSignalementDraftPayload($this->payload) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relecture et retests OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Ticket
#2251
Description
Certaines personnes saisissent un nombre float pour le nombre de personnes (Ex : 3.5). On l'arrondit à l'entier supérieur.
Le ticket signale une autre conversion, mais elle a été corrigée par ailleurs.
Tests
EDIT