Index du forum[FR] Airlines Manager en Français> › Supports et Bugs> › AM Professional> Voir les nouveaux messages | Voir mes messages

Maintenance (Plantage Javascript)

Tout ce qui concerne la version Professional (ex-AM 2)

Maintenance (Plantage Javascript)

Messagede m3ct0n » Mar Sep 17, 2019 09:28

Bonjour,

Depuis la nouvelle page de maintenance (qui contient la liste des hubs) plante sur ma compagnie , j'ai un soucis quand je positionne le cursor sur 30% de d'usure, j'obtiens l'erreur JS suivante:

J'ai réussi à faire 2 maintenances de groupe (à 22, & 24 sur certain type d'avions) mais depuis erreur JS:

Code: Tout sélectionner
am-201909122000.js?v1.6.11:17 Uncaught TypeError: Cannot set property 'totalCount' of null
    at Object.success (am-201909122000.js?v1.6.11:17)
    at j (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at x (jquery.min.js:4)
    at XMLHttpRequest.b (jquery.min.js:4)


Et du coup je ne peux pas sélectionner les avions que je souhaite réparer car rien ne s'affiche.

En cadeau la réponse du xhr (/maintenance/group/wear):
Code: Tout sélectionner
{"allAircrafts":{"1623988":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":197,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":261857682,"D":2156659992}}},"totalCount":197,"lowWearCount":0,"lowMarkCount":0},"totalCount":197},"type":{"longHaul":{"aircrafts":{"120":{"name":"DC8-73","count":6161,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":7529190527,"D":64200034208}}}}},"2918384":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":171,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":208992232,"D":1853719104}}},"totalCount":171,"lowWearCount":0,"lowMarkCount":0},"totalCount":171},"356566":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":140,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":178430427,"D":1524990435}}},"totalCount":140,"lowWearCount":0,"lowMarkCount":0},"totalCount":140},"192508":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":205,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":279541050,"D":2251289636}}},"totalCount":205,"lowWearCount":0,"lowMarkCount":0},"totalCount":205},"2924030":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":469,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":561841440,"D":5072817476}}},"totalCount":469,"lowWearCount":0,"lowMarkCount":0},"totalCount":469},"3458928":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":203,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":226820248,"D":827217677}}},"totalCount":203,"lowWearCount":0,"lowMarkCount":0},"totalCount":203},"2928005":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":198,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":241002610,"D":2145423202}}},"totalCount":198,"lowWearCount":0,"lowMarkCount":0},"totalCount":198},"2748597":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":58,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":73914089,"D":631774664}}},"totalCount":58,"lowWearCount":0,"lowMarkCount":0},"totalCount":58},"2920835":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":269,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":322504118,"D":2909823007}}},"totalCount":269,"lowWearCount":0,"lowMarkCount":0},"totalCount":269},"2926166":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":266,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":328690715,"D":2887154731}}},"totalCount":266,"lowWearCount":0,"lowMarkCount":0},"totalCount":266},"2974995":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":393,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":486483319,"D":4266469633}}},"totalCount":393,"lowWearCount":0,"lowMarkCount":0},"totalCount":393},"2926291":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":336,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":408133296,"D":3639877316}}},"totalCount":336,"lowWearCount":0,"lowMarkCount":0},"totalCount":336},"2921946":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":595,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":729395357,"D":6452275407}}},"totalCount":595,"lowWearCount":0,"lowMarkCount":0},"totalCount":595},"204763":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":42,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":51460342,"D":455428348}}},"totalCount":42,"lowWearCount":0,"lowMarkCount":0},"totalCount":42},"2924974":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":413,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":505008769,"D":4477360806}}},"totalCount":413,"lowWearCount":0,"lowMarkCount":0},"totalCount":413},"1286202":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":181,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":224862192,"D":1965771922}}},"totalCount":181,"lowWearCount":0,"lowMarkCount":0},"totalCount":181},"2999542":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":147,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":161746751,"D":1218628031}}},"totalCount":147,"lowWearCount":0,"lowMarkCount":0},"totalCount":147},"2832606":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":229,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":276860565,"D":2479448014}}},"totalCount":229,"lowWearCount":0,"lowMarkCount":0},"totalCount":229},"2918834":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":122,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":155973752,"D":1329404613}}},"totalCount":122,"lowWearCount":0,"lowMarkCount":0},"totalCount":122},"1379640":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":24,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":27004386,"D":257843246}}},"totalCount":24,"lowWearCount":0,"lowMarkCount":0},"totalCount":24},"196600":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":33,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":43882877,"D":361286308}}},"totalCount":33,"lowWearCount":0,"lowMarkCount":0},"totalCount":33},"2832957":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":189,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":219325559,"D":2037181580}}},"totalCount":189,"lowWearCount":0,"lowMarkCount":0},"totalCount":189},"2920544":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":294,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":361783556,"D":3189559576}}},"totalCount":294,"lowWearCount":0,"lowMarkCount":0},"totalCount":294},"2439190":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":123,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":142363340,"D":1325412493}}},"totalCount":123,"lowWearCount":0,"lowMarkCount":0},"totalCount":123},"2921407":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":526,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":642032727,"D":5235004632}}},"totalCount":526,"lowWearCount":0,"lowMarkCount":0},"totalCount":526},"153985":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":150,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":181664919,"D":1624407787}}},"totalCount":150,"lowWearCount":0,"lowMarkCount":0},"totalCount":150},"173701":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":90,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":107849391,"D":973495115}}},"totalCount":90,"lowWearCount":0,"lowMarkCount":0},"totalCount":90},"145616":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":17,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":22927675,"D":186438534}}},"totalCount":17,"lowWearCount":0,"lowMarkCount":0},"totalCount":17},"3450320":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":63,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":72750755,"D":266655391}}},"totalCount":63,"lowWearCount":0,"lowMarkCount":0},"totalCount":63},"2087815":{"aircrafts":{"120":{"name":"DC8-73"}},"longHaul":{"aircrafts":{"120":{"count":18,"lowWearCount":0,"lowMarkCount":0,"maintenanceCost":{"A":24086388,"D":197215532}}},"totalCount":18,"lowWearCount":0,"lowMarkCount":0},"totalCount":18}},"hauls":["short","medium","long"],"checks":{"A":"A","D":"D"},"alert":{"messages":{"A":"Vous allez effectuer un check A sur des avions peu us\u00e9s.","D":{"lowWear":"Vous allez effectuer un check D sur des avions peu us\u00e9s.","lowMark":"Vous allez effectuer un check D sur des avions peu anciens.","lowAll":"Vous allez effectuer un check D sur des avions peu anciens et peu us\u00e9s."},"bob":"Conseil: utilisez Bob ing\u00e9nieur a\u00e9ronautique afin d\u0027\u00e9conomiser vos dollars."},"threshold":80}}


Compagnie : 33822

A+
m3ct0n
 
Messages: 7
Inscription: Mer Déc 27, 2017 21:48
Nom de compagnie: BobetteSky
ID Compagnie AM2: 33822

Maintenance (Plantage Javascript)

Publicité

Publicité
 

Re: Maintenance (Plantage Javascript)

Messagede m3ct0n » Mar Sep 17, 2019 13:48

Je vous aide un peu plus ...

Code: Tout sélectionner
var hubData = jQuery.parseJSON($("tr.hub[data-hub-id = " + hubid + "]").attr("data-hub"));


retourne null car certain de mes hubs on l'attribut data-hub="null" car il n'y a plus aucun avion a réparer dedans (Je viens de tous les check A)

Code: Tout sélectionner
<tr class="hub rowB" data-hub-id="3519459" data-hub="null">...</tr>


Pour moi : COO, UIO & VFA.

A+
PS: Si vous pouvez regarder rapidement, j'ai 6259 DC8 à + de 30%
m3ct0n
 
Messages: 7
Inscription: Mer Déc 27, 2017 21:48
Nom de compagnie: BobetteSky
ID Compagnie AM2: 33822

Re: Maintenance (Plantage Javascript)

Messagede thomas44 » Mar Sep 17, 2019 15:05

Bonjour m3ct0n,

Le problème a été signalé à nos développeurs qui corrigeront cela dès que possible.
Veuillez nous excuser pour le désagrément.
thomas44
Équipe Playrion
 
Messages: 748
Inscription: Lun Mar 27, 2017 18:28
Nom de compagnie: Globalfleet
ID Compagnie AM2: 822858

Re: Maintenance (Plantage Javascript)

Messagede m3ct0n » Mar Sep 17, 2019 15:59

Super @thomas44, ça à l'air réglé ;)

Super rapide les dev ;)
Merci pour le if hubData !== null

A+
m3ct0n
 
Messages: 7
Inscription: Mer Déc 27, 2017 21:48
Nom de compagnie: BobetteSky
ID Compagnie AM2: 33822

Re: Maintenance (Plantage Javascript)

Messagede thomas44 » Mar Sep 17, 2019 16:37

En effet, je vous confirme que le problème a été corrigé dans l'après-midi. ;)

Bons vols !
thomas44
Équipe Playrion
 
Messages: 748
Inscription: Lun Mar 27, 2017 18:28
Nom de compagnie: Globalfleet
ID Compagnie AM2: 822858


Retourner vers AM Professional

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 3 invités