ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Ruth on October 07, 2014, 06:54:10 am

Title: Registration Form
Post by: Ruth on October 07, 2014, 06:54:10 am
Hello!

The Registration Form in my forum shows "Personal Text", "Location" and "Gender".

But when you write in this form, only the "Personal Text" is displayed in profile, not "Location" and "Gender".
Those two fields are empty, you have to edit your profile after registration and write or select it again.
Title: Re: Registration Form
Post by: emanuele on October 07, 2014, 07:18:14 am
/me smells bug

Actually: personal text works for me, but neither location nor gender are properly set during registration.
Title: Re: Registration Form
Post by: emanuele on October 07, 2014, 07:42:48 am
Yep, a bug.

The fix is to add all the fields to the list (probably some where left during the transition from "fields" to "custom fields").
In other words, in Register.controller.php, find:
Code: [Select]
		$possible_strings = array(
'birthdate',
'time_format',
'buddy_list',
'pm_ignore_list',
'smiley_set',
'personal_text', 'avatar',
'lngfile',
);
$possible_ints = array(
'pm_email_notify',
'notify_types',
'id_theme',
);

and replace with:
Code: [Select]
		$possible_strings = array(
'birthdate',
'time_format',
'buddy_list',
'pm_ignore_list',
'smiley_set',
'personal_text', 'avatar',
'lngfile', 'location',
'secret_question', 'secret_answer',
'website_url', 'website_title',
);
$possible_ints = array(
'pm_email_notify',
'notify_types',
'id_theme',
'gender',
);
Title: Re: Registration Form
Post by: Ruth on October 07, 2014, 09:06:02 am
Thank you, emanuele! :)
Title: Re: Registration Form
Post by: emanuele on October 14, 2014, 03:14:51 pm
I forgot to xref the bug report: https://github.com/elkarte/Elkarte/issues/1857
Title: Re: Registration Form
Post by: emanuele on November 04, 2014, 08:28:53 am
Fix pushed: https://github.com/emanuele45/Dialogo/commit/d66e0fa831ee5a38ac8f9d701da6fb1ed31f4205
Moving the topic while I have it on the radar.