[Vtigercrm-commits] [vtiger-commits] r11124 - /vtigercrm/branches/5.0.3/include/RelatedListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 29 08:14:48 EDT 2007
Author: richie
Date: Tue May 29 06:14:43 2007
New Revision: 11124
Log:
fix for relatedlist navigation issue. --minnie
Modified:
vtigercrm/branches/5.0.3/include/RelatedListView.php
Modified: vtigercrm/branches/5.0.3/include/RelatedListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/RelatedListView.php (original)
+++ vtigercrm/branches/5.0.3/include/RelatedListView.php Tue May 29 06:14:43 2007
@@ -156,7 +156,7 @@
//Retreiving the no of rows
$count_query = "select count(*) as count ".substr($query, stripos($query,'from'),strlen($query));
$count_result = $adb->query(substr($count_query, stripos($count_query,'select'),stripos($count_query,'ORDER BY')));
- if($relatedmodule == "Calendar" && $module != "Contacts")
+ if($relatedmodule == "Calendar" && $module != "Contacts" && $adb->query_result($count_result,0,"count") != 0)
$noofrows = $adb->num_rows($count_result);
else
$noofrows = $adb->query_result($count_result,0,"count");
More information about the vtigercrm-commits
mailing list