Skip to content

Commit

Permalink
+ (CRM) Fixed a problem where viewing a reminder for a deleted entity…
Browse files Browse the repository at this point in the history
… would throw an exception. (Fixes #5681)
  • Loading branch information
nairdo committed Nov 27, 2023
1 parent 9408c45 commit d74d26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RockWeb/Blocks/Reminders/ReminderList.ascx.cs
Expand Up @@ -546,7 +546,7 @@ private List<ReminderViewModel> GetReminders( int? entityTypeId, int? entityId,

foreach ( var reminder in reminders.ToList() )
{
var entity = reminderEntities[reminder.Id];
var entity = reminderEntities.ContainsKey( reminder.Id ) ? reminderEntities[reminder.Id] : null;
if ( entity == null )
{
invalidReminders.Add( reminder );
Expand Down

0 comments on commit d74d26e

Please sign in to comment.