[Vtigercrm-commits] [vtiger-commits] r7636 - /vtigercrm/trunk/data/CRMEntity.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 09:42:28 EDT 2006
Author: saraj
Date: Wed Jun 28 07:42:24 2006
New Revision: 7636
Log:
Problem in displaying graph in dashboard home page fixed
Modified:
vtigercrm/trunk/data/CRMEntity.php
Modified: vtigercrm/trunk/data/CRMEntity.php
==============================================================================
--- vtigercrm/trunk/data/CRMEntity.php (original)
+++ vtigercrm/trunk/data/CRMEntity.php Wed Jun 28 07:42:24 2006
@@ -1512,42 +1512,8 @@
*/
function get_full_list($order_by = "", $where = "") {
$this->log->debug("get_full_list: order_by = '$order_by' and where = '$where'");
- $query = "SELECT * FROM $this->table_name ";
-
- if($where != "")
- $query .= "where ($where) AND deleted=0";
- else
- $query .= "where deleted=0";
-
- if(!empty($order_by))
- $query .= " ORDER BY $order_by";
-
- $result =& $this->db->query($query, false);
-
- if($this->db->getRowCount($result) > 0){
-
- // We have some data.
- while ($row = $this->db->fetchByAssoc($result)) {
- foreach($this->list_fields as $field)
- {
- if (isset($row[$field])) {
- $this->$field = $row[$field];
-
- $this->log->debug("process_full_list: $this->object_name({$row['id']}): ".$field." = ".$this->$field);
- }
- else {
- $this->$field = '';
- }
- }
-
-
- $list[] = clone($this); //added clone tosupport PHP5
- }
- }
-
- if (isset($list)) return $list;
- else return null;
-
+ $query = $this->create_list_query($order_by, $where);
+ return $this->process_full_list_query($query);
}
}
More information about the vtigercrm-commits
mailing list