Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
For the repo - https://bitbucket.org/skyventure/api2-cache
In branch comparing stage against master - there is no delta (see screenshot).
However you check the source (or use git cli to git diff stage master) - you clearly see a delta between two codebase.
#!diff diff --git a/class.flights.php b/class.flights.php index d12ec32..120205a 100644 --- a/class.flights.php +++ b/class.flights.php @@ -339,7 +339,7 @@ class Flights { function getFlightMaxQty($session, $flight, $rules) { $qty_remaining = $session['qty_remaining']; - $minutes = (!empty($flight['min_qty']) && $flight['min_qty']>1)?$flight['minutes']/$flight['min_qty']:$flight['minutes']; + $minutes = $flight['minutes']; return floor($qty_remaining / $minutes); }
I have patched the above issue against master branch so I can continue working - but this is a dangerous edgecase bug.
Thanks