Skip to content

Commit

Permalink
Resolves issue cubecart#1248
Browse files Browse the repository at this point in the history
  • Loading branch information
briansandall committed Dec 30, 2016
1 parent 905af83 commit a321870
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/sources/products.options.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@

## Get all categories (top)
$sort_group = array('priority' => 'ASC', 'option_type' => 'ASC', 'option_name' => 'ASC');
$sort = array('priority' => 'ASC');
if (($categories = $GLOBALS['db']->select('CubeCart_option_group', false, false, $sort_group)) !== false) {
foreach ($categories as $option) {
$optionArray[$option['option_id']] = array(
Expand All @@ -251,7 +250,7 @@
);
}
## Get all values (middle)
$values = $GLOBALS['db']->select('CubeCart_option_value', false, false, $sort);
$values = $GLOBALS['db']->select('CubeCart_option_value', false, false, 'IF(priority>0, priority, value_id) ASC');
if ($values) {
foreach ($values as $value) {
if (isset($optionArray[$value['option_id']])) {
Expand Down

0 comments on commit a321870

Please sign in to comment.