SparkDevNetwork / Rock

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

Photos do not save to Events when using Event Wizard #4863

Closed JoshuaMaiorino closed 2 years ago

JoshuaMaiorino commented 2 years ago

Prerequisites

A Picture Is worth a Thousand Words

Did you know you you can simply copy and paste an image below? Please do that. It really helps us quickly understand the problem.

Description

When adding a new event using Event Wizard, photo's uploaded are not saving to the event. EventWizard_NewEvent_Photo

EventWizard_NewEvent_Detail

Steps to Reproduce

  1. Go to Event Wizard
  2. Created a New Event vs Selecting Existing
  3. Upload a photo
  4. Finish the Event Wizard
  5. View the Event Details
  6. No Photo will show.

Expected behavior:

Photos added through Event Wizard should to the Event

Actual behavior:

The Photo isn't saved

Versions

JoshuaMaiorino commented 2 years ago

It looks like the issue is caused by this line: part of the code: https://github.com/SparkDevNetwork/Rock/blob/a0a7a3bf49f041334a50953ea2b8bab24b316b4c/RockWeb/Blocks/Event/EventRegistrationWizard.ascx.cs#L671-L674 The EventItem.PhotoId will always be null. I believe the Code should checking if the imgupPhoto.BinaryFileId is null.