fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15383] rental: default filter on composites to activ


From: sigurdne
Subject: [Fmsystem-commits] [15383] rental: default filter on composites to active
Date: Wed, 27 Jul 2016 11:12:23 +0000 (UTC)

Revision: 15383
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15383
Author:   sigurdne
Date:     2016-07-27 11:12:23 +0000 (Wed, 27 Jul 2016)
Log Message:
-----------
rental: default filter on composites to active

Modified Paths:
--------------
    branches/Version-1_0-branch/rental/inc/class.uicomposite.inc.php

Modified: branches/Version-1_0-branch/rental/inc/class.uicomposite.inc.php
===================================================================
--- branches/Version-1_0-branch/rental/inc/class.uicomposite.inc.php    
2016-07-27 10:39:27 UTC (rev 15382)
+++ branches/Version-1_0-branch/rental/inc/class.uicomposite.inc.php    
2016-07-27 11:12:23 UTC (rev 15383)
@@ -89,10 +89,10 @@
                                case 'all_composites': // ... all composites, 
filters (active and vacant)
                                        phpgwapi_cache::session_set('rental', 
'composite_query', $search_for);
                                        phpgwapi_cache::session_set('rental', 
'composite_search_type', $search_type);
-                                       phpgwapi_cache::session_set('rental', 
'composite_status', phpgw::get_var('is_active'));
+                                       phpgwapi_cache::session_set('rental', 
'composite_status', phpgw::get_var('is_active','string', 'REQUEST', 'active'));
                                        phpgwapi_cache::session_set('rental', 
'composite_status_contract', phpgw::get_var('has_contract'));
                                        phpgwapi_cache::session_set('rental', 
'composite_furnished_status', phpgw::get_var('furnished_status'));
-                                       $filters = array('furnished_status' => 
phpgw::get_var('furnished_status'),'is_active' => phpgw::get_var('is_active'), 
'is_vacant' => phpgw::get_var('occupancy'), 
+                                       $filters = array('furnished_status' => 
phpgw::get_var('furnished_status'),'is_active' => 
phpgw::get_var('is_active','string', 'REQUEST', 'active'), 'is_vacant' => 
phpgw::get_var('occupancy'),
                                                                         
'has_contract' => phpgw::get_var('has_contract'), 'availability_date_from' => 
phpgw::get_var('availability_date_from_hidden'), 
                                                                         
'availability_date_to' => phpgw::get_var('availability_date_to_hidden'), 
'district_id' => $district_id);
                                        $result_objects = 
rental_socomposite::get_instance()->get($start_index, $num_of_objects, 
$sort_field, $sort_ascending, $search_for, $search_type, $filters);




reply via email to

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