The drag & drop ordering of the users in the Module Parameters for mod_k2_users doesn't seem to work. It does restrict the users to those selected, but the order returned by MySQL seems to be based on UID not the order specified. I was unable to find any code that was meant to support this functionality so I added some.
If there is already some support for that desirable feature, if so, where is it and how do I make use of it?
@version $Id: helper.php 483 2010-06-16 18:13:40Z joomlaworks $
++ after line 48 ::: $userObjects = db->loadObjectList() - added
$newUserObjects = array();
foreach ($IDs as $id) {
foreach ($userObjects as $uO) {
if ($uO->UID == $id) {
$newUserObjects[] = $uO;
break;
}
}
}
$userObjects = $newUserObjects;
Thanks,
David