fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11150] property: add allrows in get


From: Sigurd Nes
Subject: [Fmsystem-commits] [11150] property: add allrows in get
Date: Wed, 05 Jun 2013 16:16:44 +0000

Revision: 11150
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11150
Author:   sigurdne
Date:     2013-06-05 16:16:25 +0000 (Wed, 05 Jun 2013)
Log Message:
-----------
property: add allrows in get

Modified Paths:
--------------
    trunk/property/inc/class.soadmin_entity.inc.php

Modified: trunk/property/inc/class.soadmin_entity.inc.php
===================================================================
--- trunk/property/inc/class.soadmin_entity.inc.php     2013-06-05 13:22:39 UTC 
(rev 11149)
+++ trunk/property/inc/class.soadmin_entity.inc.php     2013-06-05 16:16:25 UTC 
(rev 11150)
@@ -955,7 +955,7 @@
                function delete_entity($id)
                {
                        $id = (int) $id;
-                       
$category_list=$this->read_category(array('entity_id'=>$id));
+                       
$category_list=$this->read_category(array('allrows'=>true, 'entity_id'=>$id));
                        $locations = array();
                        $locations[] = $GLOBALS['phpgw']->locations->get_id( 
$this->type_app[$this->type], ".{$this->type}.{$id}");
                        $subs = $GLOBALS['phpgw']->locations->get_subs( 
$this->type_app[$this->type], ".{$this->type}.{$id}");
@@ -969,7 +969,7 @@
                        $this->db->query('DELETE FROM phpgw_cust_attribute 
WHERE location_id IN (' . implode(',', $locations) . ')',__LINE__,__FILE__);
                        $this->db->query('DELETE FROM phpgw_locations WHERE 
location_id IN (' . implode(',', $locations) . ')',__LINE__,__FILE__);
                        $this->db->query('DELETE FROM phpgw_acl WHERE 
location_id IN (' . implode(',', $locations) . ')',__LINE__,__FILE__);
-                       if (isset($category_list) AND is_array($category_list))
+                       if (isset($category_list) && is_array($category_list))
                        {
                                $this->init_process();
 




reply via email to

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