fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17555] bookingfrontend: fix filter on organization


From: sigurdne
Subject: [Fmsystem-commits] [17555] bookingfrontend: fix filter on organization
Date: Thu, 11 Jan 2018 09:59:14 -0500 (EST)

Revision: 17555
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17555
Author:   sigurdne
Date:     2018-01-11 09:59:13 -0500 (Thu, 11 Jan 2018)
Log Message:
-----------
bookingfrontend: fix filter on organization

Modified Paths:
--------------
    trunk/bookingfrontend/inc/class.bosearch.inc.php

Modified: trunk/bookingfrontend/inc/class.bosearch.inc.php
===================================================================
--- trunk/bookingfrontend/inc/class.bosearch.inc.php    2018-01-11 14:55:45 UTC 
(rev 17554)
+++ trunk/bookingfrontend/inc/class.bosearch.inc.php    2018-01-11 14:59:13 UTC 
(rev 17555)
@@ -29,7 +29,7 @@
 
                        if (!$types)
                        {
-                               $types = array('building', 'resource');//default
+                               $types = array('building', 'resource', 
'organization');//default
                        }
 
                        if ($type = phpgw::get_var('type', 'string', 'REQUEST', 
null))
@@ -67,7 +67,7 @@
                                $_filter_building['id'] = $building_id;
                        }
 
-//                     if(in_array('building', $types))
+                       if(in_array('building', $types))
                        {
 
                                $bui_result = 
$this->sobuilding->read(array("query" => $searchterm, "sort" => "name",
@@ -90,7 +90,7 @@
                        }
 //                     _debug_array($bui_result);
 
-//                     if (in_array('organization', $types))
+                       if (in_array('organization', $types))
                        {
                                $org_result = 
$this->soorganization->read(array("query" => $searchterm, "sort" => "name",
                                        "dir" => "asc", "filters" => 
array("active" => "1")));
@@ -107,7 +107,7 @@
                                }
                        }
 
-//                     if(in_array('resource', $types))
+                       if(in_array('resource', $types))
                        {
                                $_filter_resource = array("active" => "1");
 




reply via email to

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