View Issue Details

IDProjectCategoryView StatusLast Update
0001673OXID eShop (all versions)1.08. Listmania, Notice list, Gift registrypublic2012-12-07 14:33
ReporterMoehlis Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2.0 revision 23610 
Fixed in Version4.3.1 revision 27257 
Summary0001673: default sorting "desc" is not preselected in sorting select box
Descriptionwhen using default sorting on category as "desc", it wont be preselected in the template.

reason:
oxubase.php:prepareSortColumns() checks if the direction is a valid alpha:
oxUtils::getInstance()->isValidAlpha( $sSortDir )

but in real "desc" is " desc ", so the check will fail everytime.
the whitespaces are set in alist.php:getSorting()
$sSortDir = ( $oActCat->oxcategories__oxdefsortmode->value ) ? " desc " : null;

i fixed it by just removing the whitespaces. it dont seem to have any negative effect to queries or so on.
TagsListmania
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

Moehlis

2010-03-01 17:14

reporter   ~0002375

ok...i c in demo shop there is no selectbox but arrow links without preselection.

well, anyway it would be nice to fix this so selection in custom templates will work

arvydas_vapsva

2010-04-14 10:00

reporter   ~0002530

thnx for report and solution!