fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [12337] class.custom_fields.inc


From: Saul
Subject: [Fmsystem-commits] [12337] class.custom_fields.inc
Date: Wed, 19 Nov 2014 22:37:32 +0000

Revision: 12337
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12337
Author:   psaul
Date:     2014-11-19 22:37:31 +0000 (Wed, 19 Nov 2014)
Log Message:
-----------
class.custom_fields.inc

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/inc/class.custom_fields.inc.php

Modified: branches/dev-syncromind/phpgwapi/inc/class.custom_fields.inc.php
===================================================================
--- branches/dev-syncromind/phpgwapi/inc/class.custom_fields.inc.php    
2014-11-19 22:36:22 UTC (rev 12336)
+++ branches/dev-syncromind/phpgwapi/inc/class.custom_fields.inc.php    
2014-11-19 22:37:31 UTC (rev 12337)
@@ -1009,7 +1009,7 @@
                 */
                public function find($appname, $location, $start = 0, $query = 
'', $sort = 'ASC',
                                $order = 'attrib_sort', $allrows = false, 
$inc_choices = false, $filter = array())
-               {
+               {        
                        $location_id    = 
$GLOBALS['phpgw']->locations->get_id($appname, $location);
                        return $this->find2($location_id, $start, $query, 
$sort, $order, $allrows, $inc_choices, $filter);
                }
@@ -1031,7 +1031,7 @@
 
                public function find2($location_id, $start = 0, $query = '', 
$sort = 'ASC',
                                $order = 'attrib_sort', $allrows = false, 
$inc_choices = false, $filter = array())
-               {
+               {                
                        $location_id    = (int) $location_id;
                        $start                  = (int) $start;
                        $query                  = 
$this->_db->db_addslashes($query);
@@ -1090,7 +1090,7 @@
                        $sql = "FROM phpgw_cust_attribute "
                                . " WHERE location_id = {$location_id}"
                                        . " AND custom = 1 $querymethod 
$filtermethod";
-
+                        
                        $this->_total_records = 0;
                        $this->_db->query("SELECT COUNT(*) AS cnt_rec 
{$sql}",__LINE__,__FILE__);
                        if ( !$this->_db->next_record() )
@@ -1101,7 +1101,6 @@
                        $this->_total_records = $this->_db->f('cnt_rec');
 
                        $sql = "SELECT * {$sql} {$ordermethod}";
-
                        if ( $allrows )
                        {
                                $this->_db->query($sql, __LINE__, __FILE__);
@@ -1165,7 +1164,6 @@
                                        }
                                }
                        }
-
                        return $attribs;
                }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]