Projekt

Allgemein

Profil

GX-Bug #63483 » product-listing-sorting-fix.patch

Moritz Bunjes, 01.08.2019 14:57

Unterschiede anzeigen:

src/system/classes/listing/ProductListingContentControl.inc.php (date 1564664174000)
1178 1178
                if (!$t_sorting_data_array['products_sorting']) {
1179 1179
                    $t_sorting_data_array['products_sorting'] = 'pd.products_name';
1180 1180
                } elseif ($t_sorting_data_array['products_sorting'] === 'p.products_sort') {
1181
                    $t_sorting_data_array['products_sorting'] .= ',p.products_id';
1181
                    $t_sorting_data_array['products_sorting'] .= ' ' . $t_sorting_data_array['products_sorting2'] . ', p.products_id';
1182 1182
                }
1183 1183

  
1184 1184
                $t_sorting = ' ORDER BY ' . $t_sorting_data_array['products_sorting'] . ' '
......
1369 1369
            if (!$t_sorting_data_array['products_sorting']) {
1370 1370
                $t_sorting_data_array['products_sorting'] = 'pd.products_name';
1371 1371
            } elseif ($t_sorting_data_array['products_sorting'] === 'p.products_sort') {
1372
                $t_sorting_data_array['products_sorting'] .= ',p.products_id';
1372
                $t_sorting_data_array['products_sorting'] .= ' ' . $t_sorting_data_array['products_sorting2'] . ', p.products_id';
1373 1373
            }
1374 1374
            
1375 1375
            $t_sorting = ' ORDER BY ' . $t_sorting_data_array['products_sorting'] . ' '
......
1531 1531
            if (!$t_sorting_data_array['products_sorting']) {
1532 1532
                $t_sorting_data_array['products_sorting'] = 'pd.products_name';
1533 1533
            } elseif ($t_sorting_data_array['products_sorting'] === 'p.products_sort') {
1534
                $t_sorting_data_array['products_sorting'] .= ',p.products_id';
1534
                $t_sorting_data_array['products_sorting'] .= ' ' . $t_sorting_data_array['products_sorting2'] . ', p.products_id';
1535 1535
            }
1536 1536
            
1537 1537
            $t_sorting = ' ORDER BY ' . $t_sorting_data_array['products_sorting'] . ' '
......
1635 1635
            if (!$t_sorting_data_array['products_sorting']) {
1636 1636
                $t_sorting_data_array['products_sorting'] = 'pd.products_name';
1637 1637
            } elseif ($t_sorting_data_array['products_sorting'] === 'p.products_sort') {
1638
                $t_sorting_data_array['products_sorting'] .= ',p.products_id';
1638
                $t_sorting_data_array['products_sorting'] .= ' ' . $t_sorting_data_array['products_sorting2'] . ', p.products_id';
1639 1639
            }
1640 1640
            
1641 1641
            $t_sorting = ' ORDER BY ' . $t_sorting_data_array['products_sorting'] . ' '
    (1-1/1)