1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Admin > Users would only allow viewing of one user extended-field in list mode under some circumstances. Checkbox field-type corrected.

This commit is contained in:
Cameron
2016-03-22 00:02:05 -07:00
parent 982082c6da
commit a8250858e3
5 changed files with 121 additions and 5 deletions

View File

@@ -144,6 +144,29 @@
$uVal = str_replace(chr(1), '', $udata['user_'.$parms[0]]);
switch ($ueStruct["user_".$parms[0]]['user_extended_struct_type'])
{
case EUF_CHECKBOX:
$uVal = e107::unserialize($uVal);
if(!empty($uVal))
{
return implode(', ',$uVal);
/*
$text = '<ul>';
foreach($uVal as $v)
{
$text .= "<li>".$v."</li>";
}
$text .= "</ul>";
$ret_data = $text;*/
}
break;
case EUF_DB_FIELD : // check for db_lookup type
$tmp = explode(',',$ueStruct['user_'.$parms[0]]['user_extended_struct_values']);
$sql_ue = new db; // Use our own DB object to avoid conflicts