PSMList 0.4.0 PSM-040-055
| Ordre affichage : | 50 | Création : | 03/07/2023 17h07 |
| Index BL : | 55 | Modification : | 05/07/2023 23h04 |
| BL : | PSM-040-055 | ||
| Source : | Aucune | Soeurs : | - |
| 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. | ||
| Fascicule : | Ne pas communiquer : | ||
| Alerte Mailing : |
| Statut PreP : | OK - Validé | Testeur : | ARS - Arshellan |
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