fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14951]


From: Nelson Guerra
Subject: [Fmsystem-commits] [14951]
Date: Sat, 30 Apr 2016 00:21:53 +0000

Revision: 14951
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14951
Author:   nelson224
Date:     2016-04-30 00:21:53 +0000 (Sat, 30 Apr 2016)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php

Modified: 
branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php     
2016-04-29 00:18:51 UTC (rev 14950)
+++ branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php     
2016-04-30 00:21:53 UTC (rev 14951)
@@ -348,19 +348,20 @@
                                        'resizeable' => true),
                        );
 
-
+                       $values_location = $this->get_location_filter();
+                       
                        $datatable_def = array();
                        $datatable_def[] = array
                                (
                                'container' => 'datatable-container_0',
                                'requestUrl' => 
json_encode(self::link(array('menuaction' => 
'property.uigeneric_document.get_relations',
-                                               'id' => $id, 'phpgw_return_as' 
=> 'json'))),
+                                               'id' => $id, 'location_id' => 
$values_location[0]['id'], 'phpgw_return_as' => 'json'))),
                                'ColumnDefs' => $related_def,
                                'config' => array(
                                        array('disableFilter' => true)
                                )
                        );
-
+                       
                        $data = array
                                (
                                'datatable_def' => $datatable_def,
@@ -370,7 +371,7 @@
                                'status_list' => array('options' => array('id' 
=> 1, 'name' => 'status_1')),
                                'editable' => $mode == 'edit',
                                'tabs' => 
phpgwapi_jquery::tabview_generate($tabs, $active_tab),
-                               'location_filter' => array('options' => 
$this->get_location_filter()),
+                               'location_filter' => array('options' => 
$values_location),
                                'link_controller_example' => 
self::link(array('menuaction' => 'controller.uicomponent.index'))
                        );
 
@@ -500,7 +501,7 @@
                                return;
                        }
                        
-                       $file_id = phpgw::get_var('file_id', 'int');
+                       $file_id = phpgw::get_var('id', 'int');
                        $location_id = phpgw::get_var('location_id', 'int');
                        $search = phpgw::get_var('search');
                        $draw = phpgw::get_var('draw', 'int');
@@ -515,7 +516,10 @@
                                'filter_item' => array()
                                ));
                        
-                       //$relation_values = 
$this->bo->get_file_relations($location_id, $file_id);
+                       if ($file_id)
+                       {
+                               $relation_values = 
$this->bo->get_file_relations($location_id, $file_id);
+                       }
                        $values_location_item_id = array();
                        if (count($relation_values))
                        {
@@ -570,7 +574,8 @@
                 */
                private function _handle_files( $id )
                {
-                       $id = (int)$id;
+                       //$id = (int)$id;
+                       $id = 78048;
                        if (!$id)
                        {
                                throw new 
Exception('uigeneric_document::_handle_files() - missing id');




reply via email to

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