matcorrao VIP
Total posts: 83
05 Dec 2012 11:15

Hello guys,

A few months ago, I submitted a problem for this same site: http://www.orugga.com

This time, I'm having problems with section ordering, you see:

  • Projects section's order is "Most recent first" (r.ctime ASC)

  • Clients section's order is "Oldest first" (r.ctime DESC)

Please do the following to see the error (first access with browser session cleaned):

1) Go to Projects section. You'll find projects ordered by "Most recent first". This is OK. For your reference, project "Cine Hoyts Argentina for Windows Phone" is the newest one, so you'll see it in first place.

2) Go to Clients section. You'll find clients ordered by "Oldest first". This is OK

3) Go back to Projects section. Now you'll find projects ordered by "Oldest first". This is NOT OK. You can check this because project "Cuál Es?: Videostreaming Application" is the oldest one and now it's in first place.

It looks like the sections' orders are being mixed in user state.

I tried to force limit.ordering and limit.direction to use section order (in the view records/view.html.php) but couldn't do it.

Can you please check?

Thanks,

Matias

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
06 Dec 2012 00:00

Fixed in release today.


matcorrao VIP
Total posts: 83
06 Dec 2012 15:02

Hi Sergey,

Thanks for this. Any chance you provide quick fix here?

Thanks again,

Matias


Sergey
Total posts: 13,748
06 Dec 2012 19:24

It did not work after update?

in models/records.php in populateState function at the end I have changed

This

parent::populateState($orders[0], @$orders[1]);

to this

$context = $this->context;

$this->context = $this->context.$key;

parent::populateState($orders[0], @$orders[1]);

$this->context = $context;


matcorrao VIP
Total posts: 83
07 Dec 2012 16:53

Excellent Sergey, it worked! Thank you so much!

All the best,

Matias

Powered by Cobalt