From 8e5a4551cb535eadf327fef7b007c8839a74dce2 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 6 Jun 2014 19:11:05 +0000 Subject: [PATCH] AliasHandler: - fix query in getList(), which caused an empty list on some systems https://sourceforge.net/p/postfixadmin/bugs/313/ Fix by VERSATECH SRL, versatechsrl @SF git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1678 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/AliasHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/AliasHandler.php b/model/AliasHandler.php index 6275db9b..1e7783d1 100644 --- a/model/AliasHandler.php +++ b/model/AliasHandler.php @@ -283,7 +283,8 @@ class AliasHandler extends PFAHandler { public function getList($condition, $limit=-1, $offset=-1) { # only list aliases that do not belong to mailboxes - return parent::getList( "__is_mailbox IS NULL AND ( $condition )", $limit, $offset); + # TODO: breaks if $condition is an array + return parent::getList( "__mailbox_username IS NULL AND ( $condition )", $limit, $offset); } protected function _validate_goto($field, $val) {