1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Exclude user extended categories from field selection

This commit is contained in:
e107steved
2009-10-21 21:36:10 +00:00
parent a78b3ab42c
commit 5534fb57dd

View File

@@ -10,8 +10,8 @@
* Administration Area - Users * Administration Area - Users
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $
* $Revision: 1.60 $ * $Revision: 1.61 $
* $Date: 2009-10-21 19:19:53 $ * $Date: 2009-10-21 21:36:10 $
* $Author: e107steved $ * $Author: e107steved $
* *
*/ */
@@ -582,13 +582,15 @@ class users
'user_pwchange' => array('title' => LAN_USER_24,'width' => 'auto'), 'user_pwchange' => array('title' => LAN_USER_24,'width' => 'auto'),
); );
$sql->db_Select("user_extended_struct"); if($sql->db_Select('user_extended_struct', 'user_extended_struct_name', "user_extended_struct_type > 0 AND user_extended_struct_text != '_system_' ORDER BY user_extended_struct_parent ASC"))
{
while ($row = $sql->db_Fetch()) while ($row = $sql->db_Fetch())
{ {
$field = "user_".$row['user_extended_struct_name']; $field = "user_".$row['user_extended_struct_name'];
$title = ucfirst(str_replace("user_","",$field)); $title = ucfirst(str_replace("user_","",$field));
$this->fields[$field] = array('title' => $title,'width' => 'auto'); $this->fields[$field] = array('title' => $title,'width' => 'auto');
} }
}
$this->fields['options'] = array('title' => LAN_OPTIONS,'width' => '10%',"thclass" => "center last",'forced' => true); $this->fields['options'] = array('title' => LAN_OPTIONS,'width' => '10%',"thclass" => "center last",'forced' => true);
} }