From 8f92401c2776efc9196ed4db2dee887261a36ecf Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Thu, 27 Sep 2012 08:40:13 -0400
Subject: [PATCH] - Bugfix: show the correct country flag in client and reseller lists.
---
interface/lib/classes/listform_actions.inc.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index 66a9f2c..6c707fc 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -248,6 +248,12 @@
$order_by_sql = "GROUP BY mailuser_id ".$order_by_sql;
}
}
+
+ if($this->SQLExtSelect != '') {
+ if(substr($this->SQLExtSelect,0,1) != ',') $this->SQLExtSelect = ','.$this->SQLExtSelect;
+ $extselect .= $this->SQLExtSelect;
+ }
+
return 'SELECT '.$app->listform->listDef['table'].'.*'.$extselect.' FROM '.$app->listform->listDef['table']."$join WHERE $sql_where $order_by_sql $limit_sql";
}
--
Gitblit v1.9.1