Menu

#2340 (ok 2.10) $cfg[\'Order\'] = \'SMART\' overwritten

2.10.0-beta1
fixed
1
2013-06-11
2007-01-25
No

setting $cfg['Order'] = 'SMART'; in config.inc always results in "ORDER BY ... DESC" in *all* field header links, regardless of the type of the field. After the first "browsing" $GLOBALS['cfg']['Order'] (and the corresponding value in $_SESSION) is changed to 'DESC'.

Discussion

  • Jürgen Wind

    Jürgen Wind - 2007-01-26

    Logged In: YES
    user_id=1383652
    Originator: YES

    it seems to depend on which db i choose, sometimes all sort links are DESC, sometimes ASC, but never 'smart' ( DESC for time/date fields, ASC else ).

     
  • Jürgen Wind

    Jürgen Wind - 2007-01-26
    • summary: $cfg['Order'] = 'SMART' always results in 'DESC' --> $cfg['Order'] = 'SMART' always results in 'DESC' or'ASC'
     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    yes - i think this is the intended behavior - with smart DateTime is sorted with newest first - DESC, and all other ASC

    what do you expect?

     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    yes - i think this is the intended behavior - with smart DateTime is sorted with newest first - DESC, and all other ASC

    what do you expect?

     
  • Jürgen Wind

    Jürgen Wind - 2007-01-30

    Logged In: YES
    user_id=1383652
    Originator: YES

    >with smart DateTime is sorted with newest first - DESC, and all other ASC
    exactly!
    >what do you expect?
    That it works as intended.

     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    ups, i missread your problem - of course you are right

     
  • Sebastian Mendel

    • assigned_to: nobody --> cybot_tm
    • status: open --> open-accepted
     
  • Sebastian Mendel

    patch

     
  • Sebastian Mendel

    • milestone: --> 2.10.0-beta1
    • priority: 5 --> 1
    • summary: $cfg['Order'] = 'SMART' always results in 'DESC' or'ASC' --> (ok 2.10) $cfg['Order'] = 'SMART' overwritten
    • status: open-accepted --> open-fixed
     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    File Added: pma bug#1644740.patch

     
  • Marc Delisle

    Marc Delisle - 2007-02-28
    • summary: (ok 2.10) $cfg['Order'] = 'SMART' overwritten --> (ok 2.10) $cfg[\'Order\'] = \'SMART\' overwritten
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed