Files
FreshRSS/app/Models
Marien Fressinaud 4058898de2 Fix categories sorting (#2616)
I had a bug when some articles in a category were unread. Sometimes,
filtering the category displayed all the articles, even with the "Adjust
showing" option.

A reasonably good guess was to look the last commits that impacted the
categories and, indeed, it was introduced by the new category sorting
system.

The sort function (`usort`) doesn't keep the index association, which is
important here. I must admit I don't understand exactly why (I didn't
search), but the keys are probably used somewhere. Another fix would be
to not rely on these keys anymore.

The bug was introduced in 042fcd5e93

- Ref PR: https://github.com/FreshRSS/FreshRSS/pull/2592
- Ref usort: https://www.php.net/manual/en/function.usort.php
- Ref uasort: https://www.php.net/manual/en/function.uasort.php
2019-10-31 12:33:18 +01:00
..
2019-08-20 14:55:43 +02:00
2019-10-26 13:16:15 +02:00
2019-10-31 12:33:18 +01:00
2019-10-23 00:52:15 +02:00
2019-10-23 00:52:15 +02:00
2019-10-23 00:52:15 +02:00
2019-10-23 00:52:15 +02:00
2019-03-23 22:52:47 +01:00
2014-10-05 18:51:08 +02:00
2018-11-11 17:31:50 +01:00
2015-03-05 13:29:41 +01:00
2017-11-04 21:19:51 +01:00
2019-10-23 00:52:15 +02:00
2019-10-23 00:52:15 +02:00
2018-09-29 20:47:17 +02:00
2018-09-29 20:47:17 +02:00
2019-10-23 00:52:15 +02:00
2018-09-29 20:47:17 +02:00