Fix ProfilePhone
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 24 May 2010 22:54:16 +0000 (00:54 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 24 May 2010 22:54:16 +0000 (00:54 +0200)
Phones weren't associated with profile in a batch load of profiles.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/profilefields.inc.php

index c91403d..026eb11 100644 (file)
@@ -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),