From 6c305877a0fde5ab8b19a2db8389f54f87dfb463 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 25 May 2010 00:54:16 +0200 Subject: [PATCH] Fix ProfilePhone MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Phones weren't associated with profile in a batch load of profiles. Signed-off-by: Raphaël Barrois --- include/profilefields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index c91403d..026eb11 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -672,7 +672,7 @@ class ProfilePhones extends ProfileField public static function fetchData(array $pids, ProfileVisibility $visibility) { - $data = XDB::iterator('SELECT tel_type AS type, search_tel AS search, display_tel AS display, link_type, comment + $data = XDB::iterator('SELECT tel_type AS type, search_tel AS search, display_tel AS display, link_type, comment, pid FROM profile_phones WHERE pid IN {?} AND pub IN {?} ORDER BY ' . XDB::formatCustomOrder('pid', $pids), -- 2.1.4