diff --git a/include/user_menu.php b/include/user_menu.php
index 9607b7ba9..9d8d381f0 100644
--- a/include/user_menu.php
+++ b/include/user_menu.php
@@ -318,19 +318,31 @@ function u_ShowMenuJrn($p_cn,$p_jrn_type)
$access_key_list = array();
for ($i=0;$i<$num;$i++) {
$action=pg_fetch_array($Res,$i);
- $ret.=sprintf('
| %s |
',
- $action['ja_name'][0], $action['ja_desc'], $action['ja_url'],$action['ja_action'],
- '' . get_quick_key($action['ja_name'],$access_key_list) . '' . substr($action['ja_name'],1));
+ $access_key=get_quick_key($action['ja_name'],$access_key_list);
+ $lib=str_replace($access_key,''.$access_key.'',$action['ja_name'],1);
+ $ret.=sprintf('| %s |
',
+ $action['ja_name'][0], $action['ja_desc'], $action['ja_url'],$action['ja_action'],
+ $lib);
+
}
$ret.='';
return $ret;
}
-/*
-* return a not yet used access key. The returned key is added to $access_key_list
-*/
-function get_quick_key($title,$access_key_list)
+/* function get_quick_key
+ * Purpose : Show the menu of the jrn depending of its type
+ * return a not yet used access key. The returned key is added to $access_key_list
+ * parm :
+ * - $title
+ * - $access_key_list
+ * gen :
+ * - none
+ * return:
+ * - string containing the menu
+ */
+function get_quick_key($title,&$access_key_list)
{
$quick = $title[0];
if(array_key_exists($quick, $access_key_list))