[development] Dispay profile category in right order
tolya.msu at gmail.com
Sat Nov 7 12:02:25 UTC 2009
Forgot to add it is Drupal 6.14
On Sat, Nov 7, 2009 at 1:46 PM, Belyaev Anatoly <tolya.msu at gmail.com> wrote:
> 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
> 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
With best wishes,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development