[Vtigercrm-commits] [vtiger-commits] r7246 - in /vtigercrm/trunk: Smarty/templates/Reports.tpl modules/Reports/Reports.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Jun 19 03:22:00 EDT 2006
Author: saraj
Date: Mon Jun 19 01:21:54 2006
New Revision: 7246
Log:
Fixes #1311
Modified:
vtigercrm/trunk/Smarty/templates/Reports.tpl
vtigercrm/trunk/modules/Reports/Reports.php
Modified: vtigercrm/trunk/Smarty/templates/Reports.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Reports.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Reports.tpl Mon Jun 19 01:21:54 2006
@@ -65,8 +65,8 @@
<tbody><tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$MOD.LBL_CREATE_NEW} :</b></td></tr>
<tr>
<td>
- {foreach item=modules from=$REPT_MODULES}
- <a href="javascript:CreateReport('{$modules}');" class="reportMnu">- {$modules}</a>
+ {foreach item=modules key=modulename from=$REPT_MODULES}
+ <a href="javascript:CreateReport('{$modulename}');" class="reportMnu">- {$modules}</a>
{/foreach}
</td>
</tr>
Modified: vtigercrm/trunk/modules/Reports/Reports.php
==============================================================================
--- vtigercrm/trunk/modules/Reports/Reports.php (original)
+++ vtigercrm/trunk/modules/Reports/Reports.php Mon Jun 19 01:21:54 2006
@@ -1030,7 +1030,7 @@
if(isPermitted($key,'index') == "yes")
{
$count_flag = 1;
- $modules [] = $value;
+ $modules [$key] = $value;
}
}
}
More information about the vtigercrm-commits
mailing list