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"));
Activity
Field | Original Value | New Value |
---|---|---|
Attachment | order_bug.png [ 10928 ] |
Description |
This issue affects the "config.pdt" template for all 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")); |
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")); |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Fix Version/s | 3.3.0 [ 10508 ] | |
Fix Version/s | 3.2.3 [ 10506 ] |