When editing or adding a context, we can choose views on which the context is active. When having multiple pages for these views, pages are presented as trees. If 2 views have names like "test" and "test2", pages are sorted wrongly and appear below the second view. This is because of ksort($enabled_views) which sorts "test2" before "test2:page_1".

Here is an attached patch and a screenshot.

CommentFileSizeAuthor
#5 context-529950.patch903 bytessteven jones
context_contrib.patch268 bytesjide
Image 126.png12.33 KBjide

Comments

jide’s picture

Status: Active » Patch (to be ported)

Changed status to "patch".

jide’s picture

Hmmm, i meant :
This is because of ksort($enabled_views) which sorts "test2" before "test:page_1". (test:page_1 instead of test2:page_1).

steven jones’s picture

Version: 6.x-2.0-beta5 » 6.x-2.0-beta7
Status: Patch (to be ported) » Fixed

Actually we can go better than this, if we sort before we do our magic the views can be in alpha order, and be in a tree.

Committed to 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

steven jones’s picture

Version: 6.x-2.0-beta7 » 6.x-3.0-beta4
Status: Closed (fixed) » Needs review
StatusFileSize
new903 bytes

This is also an issue in Context 3.x.

Fix attached.

yhahn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.