From: Raphaël Barrois Date: Mon, 24 May 2010 22:54:16 +0000 (+0200) Subject: Fix ProfilePhone X-Git-Tag: xorg/1.0.0~247 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6c305877a0fde5ab8b19a2db8389f54f87dfb463;p=platal.git Fix ProfilePhone Phones weren't associated with profile in a batch load of profiles. Signed-off-by: Raphaël Barrois --- 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),