SalesforceFoundation / Volunteers-for-Salesforce

Volunteers for Salesforce managed package
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Personal Site "Your Recent Volunteer History" Cannot use Standard Comment Field #466

Open coriobriensfdo opened 4 years ago

coriobriensfdo commented 4 years ago

Hub Thread

Issue: When attempting to use the standard Volunteer Hours object "Comment" field within the PersonalSiteContactInfoHistory Field Set, the date of the job is displayed rather than the contents of the field. Screen Shot 2019-12-03 at 10 39 13 AM

Steps to reproduce:

  1. In an org with V4S, including setup for Personal Sites Pages enabled, go to Setup -> Object Manager -> Volunteer Hours -> Field Sets, and open the PersonalSiteContactInfoHistory set.

  2. Drag and drop the Comment field, and Save.

  3. On a Volunteer Hours record, ensure the Comment field is visible. At this point it doesn't matter if there is any text in the comment field or not. Screen Shot 2019-12-03 at 10 40 06 AM

  4. Using the Preview feature for the Volunteer Email Personal Sites Lookup template (or another method), access the personal site for the Contact and view the "Your Recent Volunteer History" section.

  5. Expected: The Comment field column should show the values entered in the Volunteer Hours record, or blank. Actual Result: The Date of the Job is being displayed. (As shown above).

Note that the issue appears to only be occurring on the actual Comment field, and doesn't appear to relate to the type of field. The standard Comment field is Long Text Area, but creating a custom Long Text Area field works as expected.

Workaround: To get around this, you can create a custom Comment field in either Text, Long Text Area, or Rich Text. Ensure the Site Guest User has Edit and Read permissions on those fields, and add to Field Set. These will display properly on the site page, showing either empty or the values correctly. Screen Shot 2019-12-03 at 10 54 12 AM

Screen Shot 2019-12-03 at 10 54 23 AM

coriobriensfdo commented 4 years ago

**lurch: add

LurchTheButler commented 4 years ago

Tracking W-037929

tsheldon commented 3 years ago

Just a quick note - this appears to be src/classes/VOL_CTRL_PersonalSiteContactInfo.cls lines 259 and 273.

I'd send a PR but unfortunately can't due to situations beyond my control.

coriobriensfdo commented 3 years ago

Thanks for the note @tsheldon. I see you had closed a PR you created, I'm assuming due to the need to sign the contributor agreement. Thank you regardless!