Hi. I have some problem with sorting out which category of profile(core module) to show on user page first if i have more then one of it.
ex:. I create 2 category on administrator page with some fields on each.
category A
field A_A
filed A_B
category B
field B_A
field B_B
Then user fil in this field with data and try to review it on his page aka (example.com/user/3).
And it displays the category "B" before "A" which is not good.
I discover that it gets it from database with query "SELECT * FROM profile_fields WHERE visibility != 4 ORDER BY category, weight."
So there is all good.
Then it construct the array of this fields. And Dev_render page show me that all good with order there too. But still on page it on wrong order.
I find the work around that if i add DESC to query on category the display will be ok.
Any idea why it happened?
PS. Tested on all default theme.
--
With best wishes,
Anatoly Belyaev
Saturday, November 7, 2009
Subscribe to:
Post Comments (Atom)
0 评论:
Post a Comment