Ticket #3815 (closed Bugs: fixed)

Opened 4 years ago

Last modified 3 years ago

Out-by-one error in number of parking lots

Reported by: Nick_Lewis Assigned to: p_lindheimer
Priority: minor Milestone: 2.6
Component: Parking Lot Version: 2.6-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

There is an out-by-one error in number of parking lots. For example if you specify 2 parking spaces, 3 are created (71-73).

In parking/functions.inc.php there is the incorrect line of code: $parkpos2=$parkpos1+$numslots; (should be minus 1 or $parkext+$numslots)

Also the help is incorrect in page.parking.php: "if 70 is the extension and 8 slots are configured, the parking slots will be 71-79" (should be 71-78)

Change History

08/23/09 18:43:39 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

(In [8101]) fixes #3815 parking slots off by one

01/07/10 13:51:21 changed by mickecarlsson

(In [8567]) Re #3815 updated language template and all languages for parking