2013-11-23, 23:42:52
(2013-11-23, 05:36:55)smooo3 Wrote: I want to report some bugs, I have problem with sortby function, and I dont know how to adjust it. I named Items with numbers only 1,2,3,.. but in admin area and in output i always see it descending, alhought I set sortby title. I was only updating function provided by you in first post.
Hi smooo3, thanks a lot for your report.
For a test I have created a few items named 1, 6, 3, 5, 4, 2 and it seems to sort the item order very well:
I don't think that's a bug it's a matter of opinion ascending or descending. But you are right, string title and a number title are treated differently:
If you assign strings to the title field your items will be displayed ascending instead of descending order, it's a real bug and I will change it in one of the next releases. My plan is to implement a new sort functionality to settings to change the items order manually.
But if you really need a quick solution, you can edit "im.model.class.php" file. Look for the "sort_array()" method, there you can replace the line that says
PHP Code:
if($a<$b)
PHP Code:
if($a>$b)
(2013-11-23, 05:36:55)smooo3 Wrote: Also I have a problem when updating items, I use 3 dropdownlists and on the 2 of them: when I update Item, it always switches dropdown to first position. I have to mention that I have no default value selected. One is Ok, there I only select a number. May there be a problem that I use a non english characters??? For example: +ľščťžýáíé
I've been giving this a try and it seems to working well.
For a test I have created a category with 4 dropdown lists in different languages:
and item update has always worked well for me:
I can't find this bug and hope you can help me out. Can you be more specific about this issue?
thx