mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixes #1477 - User Extended Field Creation Type was not being saved.
This commit is contained in:
@@ -690,26 +690,16 @@ e107::js('footer-inline', js());
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'write': // Edit Page
|
case 'write': // Edit Page
|
||||||
$text = "<select class='tbox e-select' name='user_type' id='user_type'>";
|
|
||||||
foreach(e107::getUserExt()->user_extended_types as $key => $val)
|
|
||||||
{
|
|
||||||
$selected = ($curVal == $key) ? " selected='selected'": "";
|
|
||||||
$text .= "<option value='".$key."' $selected>".$val."</option>";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(empty($curVal))
|
if(empty($curVal))
|
||||||
{
|
{
|
||||||
$curtype = '1';
|
$curVal = '1';
|
||||||
}
|
}
|
||||||
$text .= "
|
|
||||||
</select>";
|
|
||||||
return $text;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'filter':
|
$types = e107::getUserExt()->user_extended_types;
|
||||||
case 'batch':
|
|
||||||
return array();
|
return $this->select('user_extended_struct_type', $types, $curVal, array('class'=>'tbox e-select'));
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user