bascherz
Member
Not sure how long this has been happening, but it might be a new thing? One of my lists uses an element I defined as a droplist. The element's Advanced PHP code is pretty much verbatim from the example there. It does a JOIN query to produce an option list. This works perfectly in the form for editing a row. But in the list view, there is a very strange behavior.
Full disclosure: Some of the options returned by the droplist element query have no text, only a numeric value, which I suspect may be a clue somehow. This is a normal condition for this list.
Behavior: If the list is sorted in descending order on the droplist element column, all is well. If it is sorted ascending, then the entire first page of rows that should have text showing in that column show the option list's numeric ID instead. What's really strange is that it's always exactly one page worth of numbers. I proved this simply by changing the page size. No matter what the page size is, all rows on every page other than page 1 show text.
Very bizarre.
Full disclosure: Some of the options returned by the droplist element query have no text, only a numeric value, which I suspect may be a clue somehow. This is a normal condition for this list.
Behavior: If the list is sorted in descending order on the droplist element column, all is well. If it is sorted ascending, then the entire first page of rows that should have text showing in that column show the option list's numeric ID instead. What's really strange is that it's always exactly one page worth of numbers. I proved this simply by changing the page size. No matter what the page size is, all rows on every page other than page 1 show text.
Very bizarre.