5e263e09a1118f14427dd489e8df3ec1.png PSMList 0.4.0 PSM-040-055

Général

Ordre affichage : 50 Création : 03/07/2023 17h07
Index BL : 55 Modification : 05/07/2023 23h04
BL : PSM-040-055

Source : Aucune Soeurs : -

Dev

Fin dev :   D (Done) Ticket : -
Contrôle dev effectué : Fiche : -

C.Qualif. :   #000000
Activé : Icône FA : Par défaut

Contact : ARS - Arshellan Qualification : Correction
Répartition : - Module : Custom
Dev : ARS - Arshellan Sous module : Ship

Provenance : 0.4.0  New Constat : -

Début : S.27 Charge j. : -
Fin : S.27 Délai j. : -
Priorité : - Pokercard : -
Estimatif j. : -

Description : Fix the speed input for forts

Texte Commit : -

Description client : Fixed a field issue that prevented users from leaving the speed input blank (eg: forts) in custom expansions.

Client

Fascicule : Ne pas communiquer :
Alerte Mailing :

PreP

Statut PreP :   OK - Validé Testeur : ARS - Arshellan

Discussion

ARS

Arshellan

mardi 4 juillet 2023 à 10:57

change this in ship entity<br/><br/><br/><br/> public function getBasemove(): ?string {<br/> return $this->basemove;<br/> }<br/> public function setBasemove(?string $basemove): self {<br/> $this->basemove = $basemove;<br/> return $this;<br/> }

ARS

Arshellan

mardi 4 juillet 2023 à 11:11

in all the add and edit controller functions<br/><br/><br/><br/> $speed_pattern = "((S)|(L)|(S\+S)|(S\+L)|(S\+S\+S)|(S\+S\+L)|(L\+L)|(S\+L\+L)|(L\+L\+L)|(D)|(T))";<br/> if ($obj->getBasemove() !== "" && !preg_match($speed_pattern, strtoupper(str_replace(' ', '', $obj->getBasemove())))) {<br/> $canPersist = false;<br/> $this->addFlash('error', 'Invalid form: The specified speed does not match any of the accepted speeds.');<br/> }<br/><br/><br/>could also be neat to put the checker in a gst function

ARS

Arshellan

mardi 4 juillet 2023 à 11:37

in all the corresponding forms, switch the required tags for basemove to false instead of true