fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7092] frontend: drawings


From: Sigurd Nes
Subject: [Fmsystem-commits] [7092] frontend: drawings
Date: Tue, 08 Mar 2011 21:30:05 +0000

Revision: 7092
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7092
Author:   sigurdne
Date:     2011-03-08 21:30:03 +0000 (Tue, 08 Mar 2011)
Log Message:
-----------
frontend: drawings

Modified Paths:
--------------
    trunk/frontend/inc/class.uidrawings.inc.php

Modified: trunk/frontend/inc/class.uidrawings.inc.php
===================================================================
--- trunk/frontend/inc/class.uidrawings.inc.php 2011-03-08 21:19:13 UTC (rev 
7091)
+++ trunk/frontend/inc/class.uidrawings.inc.php 2011-03-08 21:30:03 UTC (rev 
7092)
@@ -54,8 +54,13 @@
                        $allrows = true;
                        $sodocument     = CreateObject('property.sodocument');
 
-                       $document_list = 
$sodocument->read_at_location(array('start' => $this->start,'query' => 
$this->query,'sort' => $this->sort,'order' => $this->order,
-                               'filter' => $this->filter,'location_code' => 
$this->location_code,'doc_type' => $doc_type, 'allrows' => $allrows));
+                       $document_list = array();
+                       if( $this->location_code )
+                       {
+                               $document_list = 
$sodocument->read_at_location(array('start' => $this->start,'query' => 
$this->query,'sort' => $this->sort,'order' => $this->order,
+                                       'filter' => 
$this->filter,'location_code' => $this->location_code,'doc_type' => $doc_type, 
'allrows' => $allrows));
+                       }
+
                        $total_records = $sodocument->total_records;
 
                        
//----------------------------------------------datatable settings--------




reply via email to

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