Details
Description
This issue affects the "config.pdt" template for the standard order forms.
After choosing a term/price, continuing to the configuration step may show the wrong term selected than what was chosen on the first step.
This issue appears to only occur when multiple package IDs begin with the same integer, as shown in the image, i.e. pricing ID 17 and pricing ID 1 both begin with "1". While pricing ID 17 was selected on step 1, pricing ID 1 is selected on the page because it appears later in the list, and both are marked 'selected'.
The fix is simple: update
$this->Form->fieldSelect("pricing_id", $prices, $selected_price, array('class' => "form-control"));
to
$this->Form->fieldSelect("pricing_id", $prices, $selected_price->id, array('class' => "form-control"));