[ 
http://mifosforge.jira.com/browse/MIFOS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Monsen resolved MIFOS-2606.
--------------------------------

    Scheduled For: Product
     Story Points: 0.5
       Resolution: Fixed
             Team: Core

Fixed in trunk r16808.

But with a different implementation.

OfficeBO.compareTo() uses officeId instead of officeName, according to 
guidelines in the TreeSet docs (as mentioned in my last comment). This means 
that the list will always be in a predictable order, but that order is set by 
office id, not office name.

If this implementation is acceptable, great. If not, we can scrap tweaking the 
natural ordering of OfficeBO objects and instead impose an ordering based on 
office name (or whatever is desired) in OfficeListTag.

Sam, if you'd rather centers were sorted by name, please reopen the bug. Thanks!

> Sorting of branch offices is random
> -----------------------------------
>
>                 Key: MIFOS-2606
>                 URL: http://mifosforge.jira.com/browse/MIFOS-2606
>             Project: mifos
>          Issue Type: Bug
>          Components: Office
>    Affects Versions: Release 1.4
>         Environment: Platform: All, OS: All
>            Reporter: jbrewster
>            Assignee: Adam Monsen
>             Fix For: Gazelle C
>
>         Attachments: office-patch.txt
>
>
> From Sam:
> You have to scan the list for your office every time and it is in a different
> order every time you create a client.  
> Repro:
> 1. click "create new client"
> 2. click "no group required"
> 3. see the list of branch offices in a random order
> 4. reload the page
> 5. see the list of branch offices in a different random order

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to