| Ticket modified by Hans-Juergen Tappe at 2009/11/01 08:24 |
| Tracking System: Patches |
| Category: SiteMgr |
| Version: Trunk |
| Status: Open |
| Resolution: None |
| Completed: 0% |
| Priority: 5 - medium |
| Created By: Hans-Juergen Tappe |
| Assigned to: José Luis Gordo Romero |
| Summary: #2348 - [PATCH] The module selection in sitemgr should be sorted to improve usability. |
| Comment by Hans-Juergen Tappe at 2009/11/01 08:24: |
| Note that this code repeats for the module lists in the module manager and (with this patch) on the website. Maybe, the sorting could also be done at a lower level like the module BO or SO class (see first patch). |
| Comment by Hans-Juergen Tappe at 2009/10/31 21:29: |
This is the patch wich works correctly:
--- sitemgr/inc/class.Content_UI.inc.php (Revision 28226)
+++ sitemgr/inc/class.Content_UI.inc.php (Arbeitskopie)
@@ -556,6 +556,11 @@
function inputmoduleselect($modules)
{
$returnValue = '';
+ static $label_sort;
+
+ if (!isset($label_sort)) $label_sort = create_function('$a,$b', 'return strcasecmp($a["module_name"],$b["module_name"]);');
+ uasort($modules,$label_sort);
+
foreach($modules as $id => $module)
{
$returnValue.='<option title="' . lang($module['description']) . '" value="'.$id. |
| Comment by Hans-Juergen Tappe at 2009/10/31 20:46: |
| The patch does actually mix up module IDs. I'll investigate further. |
| Comment by Hans-Juergen Tappe at 2009/10/30 21:47: |
Comments do work - but I cannot place PHP code here?
Please add the following code in the sitemgr to improve usability:
--- sitemgr/inc/class.Content_UI.inc.php (Revision 28226)
+++ sitemgr/inc/class.Content_UI.inc.php (Arbeitskopie)
@@ -556,6 +556,7 @@
function inputmoduleselect($modules)
{
$returnValue = '';
+ usort($modules,create_function('$a,$b','return strcmp($a["module_name"], $b["module_name"]);'));
foreach($modules as $id => $module)
{
$returnValue.='<option title="' . lang($module['description']) . '"
|
| Comment by Hans-Juergen Tappe at 1970/01/01 01:33: |
| Comments do not seem to work? |
Linked entries:
Patches #2348: [PATCH] The module selection in sitemgr should be sorted to improve usability.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
eGroupWare-tracker mailing list
eGroupWare-tracker@...
https://lists.sourceforge.net/lists/listinfo/egroupware-tracker