Friendica: Profile "♥ Status" shows nonsense after editing profile

Created on 18 Sep 2018  Â·  3Comments  Â·  Source: friendica/friendica

Expected behavior

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.

Actual behavior

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=profileI see a 'e never'.

bildschirmfoto von 2018-09-18 21-03-08

Steps to reproduce the problem

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.

Friendica version you encountered the problem

2018.08-rc database version 1283 post update version 1281

Friendica source (git, zip)

git

PHP version

PHP 7.2.10

SQL version

mysql Ver 15.1 Distrib 10.1.34-MariaDB

Bug Junior Jobs UX

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 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

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elvecio picture elvecio  Â·  3Comments

hoergen picture hoergen  Â·  3Comments

hoergen picture hoergen  Â·  3Comments

loma-one picture loma-one  Â·  3Comments

AlfredSK picture AlfredSK  Â·  3Comments