5e263e09a1118f14427dd489e8df3ec1.png PSMList 0.4.0 PSM-040-014

Général

Ordre affichage : 13 Création : 03/05/2023 23h44
Index BL : 14 Modification : 19/06/2023 16h02
BL : PSM-040-014

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 : Amélioration
Répartition : - Module : Custom
Dev : ARS - Arshellan Sous module : Ship

Provenance : 0.4.0  New Constat : -

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

Description : Allow people to change mast count on custom ships in the edit form. Also disable the automatic mast count calculator if the selected type is a flotilla or bombardier.

Texte Commit : -

Description client : The mast count calculator gets smarter. It should use the correct value more often for some specific technical-shapes.

Client

Fascicule : Ne pas communiquer :
Alerte Mailing :

PreP

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

Discussion

ARS

Arshellan

lundi 19 juin 2023 à 16:02

replace the current mast calculator in custom add and edit forms for ships with this code:<br/><br/><br/><br/> if ($obj->getTechnicalshape()) {<br/> $obj->setMasts(<br/> $obj->getTechnicalshape()->getMasts()<br/> );<br/> } else {<br/> $obj->setMasts(<br/> strlen($obj->getCannons()) / 2<br/> );<br/> }