From d5473beac0fb8fdd2b11be1f7fd286d2aaed1649 Mon Sep 17 00:00:00 2001
From: Falko Timme <ft@falkotimme.com>
Date: Tue, 22 Oct 2013 09:58:40 -0400
Subject: [PATCH] - Display server name in all web domains select fields so that you know which domain from which server you select.
---
interface/lib/classes/tform.inc.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php
index 7138154..706d3b0 100644
--- a/interface/lib/classes/tform.inc.php
+++ b/interface/lib/classes/tform.inc.php
@@ -251,6 +251,7 @@
unset($tmp_recordid);
$querystring = str_replace("{AUTHSQL}",$this->getAuthSQL('r'),$querystring);
+ $querystring = preg_replace_callback('@{AUTHSQL::(.+?)}@', "self::table_auth_sql", $querystring);
// Getting the records
$tmp_records = $app->db->queryAllRecords($querystring);
@@ -292,6 +293,10 @@
}
+ function table_auth_sql($matches){
+ return $this->getAuthSQL('r', $matches[1]);
+ }
+
//* If the parameter 'valuelimit' is set
function applyValueLimit($limit,$values) {
--
Gitblit v1.9.1