Quote:
Originally posted by Birdie501
If i want to modify a custom field, the configuration for that field is not saved. If i click modify the fields Field Type and
Multiple Choice Options are empty, so i have to enter the value again every time i want to change something.
|
The "type" and "option" fields hadn't been added to the "edit" query in profilefield.php. So to fix this glitch...
Find in profilefield.php :
PHP Code:
// ###################### Start edit #######################
if ($action=="edit") {
$profilefield=$DB_site->query_first("SELECT title,description,required,hidden,maxlength,size,displayorder,editable
FROM profilefield
WHERE profilefieldid=$profilefieldid");
and change to:
PHP Code:
// ###################### Start edit #######################
if ($action=="edit") {
$profilefield=$DB_site->query_first("SELECT title,description,required,hidden,maxlength,size,displayorder,editable,type,options
FROM profilefield
WHERE profilefieldid=$profilefieldid");