Skip to content

Commit

Permalink
+ Fixed Communication Entry block so that the Subject is cleared if a…
Browse files Browse the repository at this point in the history
… selected template does not specify a subject (Fixes #1393).
  • Loading branch information
nairdo committed Feb 13, 2016
1 parent 96a874d commit c5bc7b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RockWeb/Blocks/Communication/CommunicationEntry.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,8 @@ private void GetTemplateData(int templateId, bool loadControl = true)

foreach ( var dataItem in mediumData )
{
if ( !string.IsNullOrWhiteSpace( dataItem.Value ) )
// Also check Subject so that empty subject values not set in template are cleared. (Fixes #1393)
if ( !string.IsNullOrWhiteSpace( dataItem.Value ) || dataItem.Key == "Subject" )
{
if ( MediumData.ContainsKey( dataItem.Key ) )
{
Expand Down

0 comments on commit c5bc7b6

Please sign in to comment.