View Issue Details

IDProjectCategoryView StatusLast Update
0005464OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2015-12-01 09:13
Reporterernestas.poskus 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Version4.7.8 / 5.0.8 
Target VersionFixed in Version 
Summary0005464: Set initial ordering for categories - sort keys
Description    /**
     * Used for setting session variable `aSorting` - (sort_key and sort_direction)
     *
     * default: sort key = oxtitle & sort direction = asc
     *
     * @param string $sSortKey
     * @param string $sortDir
     */
    public function setInitialSorting( $sSortKey = 'oxtitle', $sortDir = 'asc' )
    {
        $aCustomSort = array(
            'alist' => array(
                'sortby' => $sSortKey,
                'sortdir' => $sortDir,
            )
        );

        if ( !oxRegistry::getSession()->getVariable( 'aSorting' ) ) {

            /**
             * Set Session Variables
             */
            oxRegistry::getSession()->setVariable( 'aSorting', $aCustomSort );
        }

    }
Steps To ReproduceController = alist

insert function _setInitialSorting - into __constructor()
Additional InformationSets custom session sort key before everything loads
TagsNo tags attached.
ThemeNot defined
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Activities

jurate.baseviciene

2013-10-11 08:44

reporter  

for_example.png (2,707 bytes)
for_example.png (2,707 bytes)

svetlana

2014-03-28 10:04

reporter   ~0009740

waiting for the PO decision.