diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-31 15:22:48 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-31 15:22:48 +0000 |
commit | ab7d70b9d870d69a5b79c3fbb005565302112efc (patch) | |
tree | 3e1b7ed7925885fe4780c249a4008f9bd3f5cea9 /friends | |
parent | 2ba7cd11ba933888f137f875006766122fa6e0b0 (diff) | |
download | elgg-ab7d70b9d870d69a5b79c3fbb005565302112efc.tar.gz elgg-ab7d70b9d870d69a5b79c3fbb005565302112efc.tar.bz2 |
Picker saves correctly!
git-svn-id: https://code.elgg.org/elgg/trunk@1635 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'friends')
-rw-r--r-- | friends/pickercallback.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/friends/pickercallback.php b/friends/pickercallback.php index 2a6a55439..478549d3d 100644 --- a/friends/pickercallback.php +++ b/friends/pickercallback.php @@ -13,17 +13,20 @@ // Load Elgg engine
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+ global $CONFIG;
// Get callback type (list or picker)
$type = get_input('type','picker');
// Get list of members if applicable
- $members = get_input('members','');
+ /*$members = get_input('members','');
if (!empty($members)) {
$members = explode(',',$members);
} else {
$members = array();
- }
+ }*/
+ $collection = (int) get_input('collection',0);
+ $members = get_members_of_access_collection($collection, true);
$friendspicker = (int) get_input('friendspicker',0);
@@ -43,6 +46,8 @@ 'value' => $members,
'callback' => true,
'friendspicker' => $friendspicker,
+ 'formcontents' => elgg_view('friends/forms/collectionfields',array('collection' => get_access_collection($collection))),
+ 'formtarget' => $CONFIG->wwwroot . 'action/friends/editcollection',
));
break;
|