Alex Posted April 27, 2010 Report Share Posted April 27, 2010 .930 My pilots are reporting that even though they file the Pirep correctly giving a correct Dept ICAO and Arr ICAo when it arrives at admin for approval the Arrival filed hs been populated with the Departure ICAO. I haven't changed anything in the pirep tpl's. It means that the Fleet table also is not being updated correctly with the last filed pirep position. Any Clues or is this a BUG! Thanks Alex Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 27, 2010 Moderators Report Share Posted April 27, 2010 Yes i had a pilot report this as well, i just thought it was a one off and reset his destination from the admin pireps Quote Link to comment Share on other sites More sharing options...
Alex Posted April 27, 2010 Author Report Share Posted April 27, 2010 Yes i had a pilot report this as well, i just thought it was a one off and reset his destination from the admin pireps It started as just a single Pilot, Now it has migrated and is affecting two. Nasty Bug!! I have a PC Flu Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 27, 2010 Moderators Report Share Posted April 27, 2010 Im on 932 so if it happens again i will post back here, but its only been the 1 pilot so for and i have quite a few flights a day go through my va. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 27, 2010 Administrators Report Share Posted April 27, 2010 It's a bug in the template, still in 930? I thought I fixed it for 930.. If you look in the database, is the field changed there? Or is it correct there Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 27, 2010 Moderators Report Share Posted April 27, 2010 Im on 932 and nothing since, i have only had the one but will keep a look out. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 27, 2010 Administrators Report Share Posted April 27, 2010 Im on 932 and nothing since, i have only had the one but will keep a look out. Can you check in the database and see what it says Quote Link to comment Share on other sites More sharing options...
Alex Posted April 28, 2010 Author Report Share Posted April 28, 2010 Because i have edited it to be correct, i'll have to wait until it pops up again, then i'll check the database. Out of curiosity what was the bug? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 28, 2010 Administrators Report Share Posted April 28, 2010 I put depicao twice in the template by accident Quote Link to comment Share on other sites More sharing options...
Alex Posted April 28, 2010 Author Report Share Posted April 28, 2010 Nabeel, which template? pirep_new? Quote Link to comment Share on other sites More sharing options...
Alex Posted April 30, 2010 Author Report Share Posted April 30, 2010 This bug is getting worse it seems all pilots are now ariving at the same deprture point. I have checked the tpl's that i think may be affecting this but don't see any double depicao entries. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 30, 2010 Administrators Report Share Posted April 30, 2010 Have you modified any templates? And my question wasn't answered - are they the same when you look in the database? How are you submitting the PIREP? Quote Link to comment Share on other sites More sharing options...
Alex Posted April 30, 2010 Author Report Share Posted April 30, 2010 i havent modified any templates other than using obsessblue. The database shows it as being in the correct place, but the fleet list shows departure icao as the current location. The pirep is submitted manually Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 30, 2010 Administrators Report Share Posted April 30, 2010 i havent modified any templates other than using obsessblue. The database shows it as being in the correct place, but the fleet list shows departure icao as the current location. The pirep is submitted manually Fleet list? Which template? Then instead of being depicao it should be arricao. Sounds like a typo in the mod Quote Link to comment Share on other sites More sharing options...
Alex Posted May 2, 2010 Author Report Share Posted May 2, 2010 This is the Fleet List tpl. looking at it i dont think there is an error? h1 align="center"><?php echo SITE_NAME?>Fleet</h1> <!-- Fleet Table Version 2.0.- - fleet_table.tpl - By Mitchell W http://forum.phpvms.net/topic/1522-fleet-table/ CHANGES FROM 1.1: Added image Added download --> <table border="1"> <!--DWLayoutTable--> <thead> <tr> <td height="42"><b>Image</b></td> <td><b>ICAO</b></td> <td><b>Type</b></td> <td><b>Registration</b></td> <td><b>Range</b></td> <td><b>Cruise Kts</b></td> <td><b>Max Pax</b></td> <td><b>Max Cargo</b></td> <td><b>Total Hours</b></td> <td width="79"><p><b>Current Location</b></p> </td> </tr> </thead> <tbody> <?php foreach ($fleet as $aircraft) { ?> <tr> <td height="36"><img src="<?php echo $aircraft->imagelink; ?>"></td> <td><?php echo $aircraft->icao; ?> </td> <td><?php echo $aircraft->name; ?> </td> <td><?php echo $aircraft->registration; ?></td> <td><?php echo $aircraft->range; ?> </td> <td><?php echo $aircraft->cruise; ?></td> <td><?php echo $aircraft->maxpax; ?></td> <td><?php echo $aircraft->maxcargo; ?></td> <td><?php echo $aircraft->totaltime; ?></td> <td valign="top"><?php echo $current_location.'-'.$current_location2; ?></td> <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> </tr> <?php } ?> </tbody> </table> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 2, 2010 Administrators Report Share Posted May 2, 2010 This should be flipped: <td valign="top"><?php echo $current_location.'-'.$current_location2; ?></td> <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> To <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> <td valign="top"><?php echo $current_location.'-'.$current_location2; ?></td> Otherwise it's looking at the previous iteration Quote Link to comment Share on other sites More sharing options...
Alex Posted May 3, 2010 Author Report Share Posted May 3, 2010 That did the trick, Thanks Nabeel for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.