From 58b0eacb5c852637508a3fd6ecd2ae4ef587b112 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 13 Mar 2013 18:04:58 -0400
Subject: [PATCH] - Fixed FS#2795 - Empty database user dropdown/autocomplete.

---
 interface/lib/classes/listform_actions.inc.php |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index 6c707fc..8296560 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -33,8 +33,9 @@
 	private $id;
 	public $idx_key;
 	public $DataRowColor;
-	public  $SQLExtWhere = '';
-	public  $SQLOrderBy = '';
+	public $SQLExtWhere = '';
+	public $SQLOrderBy = '';
+	public $SQLExtSelect = '';
 	
 	public function onLoad()
     {
@@ -141,13 +142,14 @@
 			if($_SESSION['s']['user']['typ'] == "admin") {
 				$sql_where = '';
 			} else {
-				$sql_where = $app->tform->getAuthSQL('r').' and';
+				$sql_where = $app->tform->getAuthSQL('r', $app->listform->listDef['table']).' and'; 
+                //$sql_where = $app->tform->getAuthSQL('r').' and';
 			}
 		}		
 		if($this->SQLExtWhere != '') {
 			$sql_where .= ' '.$this->SQLExtWhere.' and';
 		}
-
+		
 		$sql_where = $app->listform->getSearchSQL($sql_where);
 		$app->tpl->setVar($app->listform->searchValues);
 		

--
Gitblit v1.9.1