When using the simple profile (show more profile fields => off) there is no profile field for "Marital Status". So when I have edited my profile the ♥ Martial Status shouldn't show up under my main avatar and nothing should be stored in that field.
The martial status is shown under the main avatar (frio: profile page) and is showing a heart and an "e" as status. When looking at the 'Basic' tab at .../profile/X/view?tab=profile
I see a 'e never'.
Make sure you're using the basic kind of user profile and the martial status isn't set. Edit your profile e.g. by adding a tag and save the profile. Click on 'view profile' and you will see it.
2018.08-rc database version 1283 post update version 1281
git
PHP 7.2.10
mysql Ver 15.1 Distrib 10.1.34-MariaDB
Finally I do know why the error accurse. In mod/profiles.php
while parsing args to the template the selection is created via
'$marital' => ContactSelector::maritalStatus($r[0]['marital']),
if the profile is deatiled it is displayed, if not a hidden input with
<input type="hidden" name="marital" id="profile-edit-marital" value="{{$marital.2}}" />
is printed.
Now the generated select starts with
$a = "<select name=\"sexual\" .....
and
$a[2] = e
Nice work, detective!
Closed via #5841
Most helpful comment
Finally I do know why the error accurse. In
mod/profiles.php
while parsing args to the template the selection is created viaif the profile is deatiled it is displayed, if not a hidden input with
is printed.
Now the generated select starts with
and