My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 56: Admin menu do not respect the order in Settings.xml
2 people starred this issue and may be notified of changes. Back to list
 
Project Member Reported by panic.ma...@gmail.com, May 17, 2011
What steps will reproduce the problem?
1. Add object entries in settings.xml
2. Add a boolean entry below the objects
3. Open the admin menu

What is the expected output? What do you see instead?
All items in the same order as in Settings.xml, but boolean comes first, followed by objects.

Please use labels and text to provide additional information.
No addition information needed.
May 26, 2011
Project Member #1 steffa...@gmail.com
Marked as a future improvement
Status: WontFix
May 26, 2011
Project Member #2 steffa...@gmail.com
This is what we wrote about a future improment

When the administration GUI displays a set of settings, the settings are currently sorted according to setting type. Integers are displayed first, then strings, then doubles, etc. A better approach, would have been to list the settings in the order they have been specified in the \settings file, as this would allow the application developer to decide the order of settings shown in the GUI of the administration module. The problem in the current implementation lies in the settings.xml parser that the GUI uses. The parser starts by parsing all the integers, then the strings, then the doubles, etc. of the settings.xml file. By not taking the settings' position into account while parsing, and by sorting the settings by type in the GUI of the administration module, this means that the order of settings specified in settings.xml file are rarely met. This also means that GIRAF developers have no way of defining the exact order settings should be displayed in. This problem could be addressed by logging the order of when settings appear in the settings.xml file, and then order the settings in the GUI accordingly.
May 26, 2011
Project Member #3 steffa...@gmail.com
(No comment was entered for this change.)
Status: Accepted

Powered by Google Project Hosting