ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: badmonkey on January 02, 2017, 01:32:37 pm

Title: 1.1b4 Personal Message sorting not obeying settings
Post by: badmonkey on January 02, 2017, 01:32:37 pm
They're always sorted from oldest to newest, regardless of settings. 
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on January 02, 2017, 03:54:58 pm
What kind of visualization do you use? (All at once, discussion, single?)
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: badmonkey on January 02, 2017, 04:33:26 pm
Conversation is my preference.  The results are the same with any. 
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: radu81 on January 02, 2017, 05:25:44 pm
I think is a bug, you cannot sort them if you click on date. You can sort conversations if you click on "Subject" or "From". It happens here and also on my 1.0.9 install. If I'm not wrong this was already reported.
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on January 02, 2017, 07:08:02 pm
DAMMIT!!!
I did it again, I had some 64 discussions marked as unread (because they had to be) and I switched by mistake to the single message that marked all of them as read... DAMMIT!

Can we get rid of the single message view? Pretty please? With sugar on top? And a cherry too?

Anyway: the bug appears only if you have "Show most recent personal messages at top.".
Instead, if this option is selected, the default sorting of the discussions is wrong (at least for me the oldest are shown first).
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: radu81 on January 04, 2017, 09:14:45 am
Quote from: emanuele – DAMMIT!!!
I did it again, I had some 64 discussions marked as unread (because they had to be) and I switched by mistake to the single message that marked all of them as read... DAMMIT!
there isn't a confirmation message before marking all as read?  In another topic you provided the code for the elkarte 1.0.x and it works great ;)

Quote from: emanuele – Can we get rid of the single message view?
I'd say yes

Quote from: emanuele – Anyway: the bug appears only if you have "Show most recent personal messages at top.".
Instead, if this option is selected, the default sorting of the discussions is wrong (at least for me the oldest are shown first).
I confirm this on elkarte 1.0.9
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on January 04, 2017, 11:12:28 am
On 1.0 as well?
Ouch!
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: radu81 on January 04, 2017, 06:48:54 pm
Do not take into consideration the message above, there is something wrong with my install, I'll open a new topic
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on January 04, 2017, 07:02:27 pm
There is always something wrong! xD
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on January 28, 2017, 04:02:44 pm
@radu81 can you confirm 1.0 is sorting fine?
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: radu81 on January 28, 2017, 05:22:04 pm
With these settings:
Display personal messages: As a Conversations
Show most recent personal messages at top. - enabled

I see the latest message first, but nothing happens if I click to sort the list based on date. I can sort the list by "FROM" and "Subject"

With these settings:
Display personal messages: As a Conversations
Show most recent personal messages at top. - disabled

I see the oldest  message first, but nothing happens if I click to sort the list on date. I can sort the list by "FROM" and "Subject"

Tried the other settings Display message All at once / One at a time, but nothing happens if you try to sort the list by pressing the DATE field.
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on January 28, 2017, 06:13:50 pm
Millenium hand and shrimp!
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: radu81 on May 07, 2017, 01:24:44 pm
Passed some time, I almost forget about this, here is what I have in Elk 1.0.10:

Display personal messages: As a Conversations
Show most recent personal messages at top. - enabled
I see the latest message first, but nothing happens if I click to sort the list based on date. I can sort the list by "FROM" and "Subject"
(Link-4783)

Display personal messages: As a Conversations
Show most recent personal messages at top. - disabled
when I go to index.php?action=pm:
(Link-4785)
click on date nothing happens, I can sort by object or author

I also tried other settings, All Messages, All at once but I cannot sort the list using the "Date" . 

Probably we have too much settings here :)
It's enough to use the page numbers instead the "Date" field to sort.
Title: Re: 1.1b4 Personal Message sorting not obeying settings
Post by: emanuele on May 07, 2017, 02:25:28 pm
I guess I misread your post or forgot about 1.0... :-\

And since I didn't post the fix, I don't remember what I changed to make it work in 1.1.

Anyway, for 1.0 tracked here https://github.com/elkarte/Elkarte/issues/2931