SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
572 stars 347 forks source link

v12.0 Alpha - Person Attributes deleted when editing profile on External Site #4505

Closed mikedotmundy closed 3 years ago

mikedotmundy commented 3 years ago

Prerequisites

Description

On the newly redesigned /MyAccount page, if the user has been given the ability to edit certain Person Attributes, and those attributes have values in them, they disappear upon editing, and then a save removes the values.

The steps below detail Adult Person attributes, however this is happening for Child Person attributes as well.

Steps to Reproduce

  1. Go to the Extended Attributes page for Alisha Admin (https://rockrmslatest.com/Person/1/ExtendedAttributes)
  2. Add an attribute for her Facebook (e.g. Alisha.Admin) and one for her Employer (e.g. Rock RMS)
  3. While logged in as Alisha Admin, navigate to /MyAccount page.
  4. Edit the block settings for the Public Profile Edit block.
  5. Add the two Person attributes from above to the Person Attributes (adults) field (Facebook and Employer), then Save
  6. See that the two attributes are now visible on her external profile page.
  7. Click Update Profile
  8. Notice that those two attributes are now blank.
  9. Save
  10. Notice that those two attributes have now been removed from her profile.

Set some attribute values:

Screen Shot 2020-11-25 at 15 39 33

Add the attributes on the external site:

Screen Shot 2020-11-25 at 15 39 10

See they display on the external site:

Screen Shot 2020-11-25 at 15 39 18

Edit the profile and see the attributes are not in the field:

Screen Shot 2020-11-25 at 15 39 26

Expected behavior:

I would expect that Person Attributes would appear filled-in when a person edits their profile, so they do not accidentally remove an attribute by not noticing that the value was blank.

Actual behavior:

~If they save without re-filling in the value, then the values are removed.~ A save removes the values no matter what.

Versions

jonedmiston commented 3 years ago

Great testing @mikedotmundy !!!

mikedotmundy commented 3 years ago

Adding to this, it looks like even if you put a value in one of these Person Attribute fields and click save, the value is never saved.