Skip to content

Commit

Permalink
+ (Group) Fixed issue of Group Attendance Detail block not downloadin…
Browse files Browse the repository at this point in the history
…g attendance rosters from certain Storage Providers. (Fixes #5424)
  • Loading branch information
PraveenMathew92 committed May 18, 2023
1 parent c15989f commit e0f974d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Rock.Blocks/Group/GroupAttendanceDetail.cs
Expand Up @@ -676,11 +676,6 @@ public BlockActionResult PrintRoster( GroupAttendanceDetailPrintRosterRequestBag

var outputBinaryFileDoc = mergeTemplateType.CreateDocument( mergeTemplate, mergeObjectList, mergeFields );

// Set the name of the output doc.
outputBinaryFileDoc = new BinaryFileService( rockContext ).Get( outputBinaryFileDoc.Id );
outputBinaryFileDoc.FileName = occurrenceData.Group.Name + " Attendance Roster" + Path.GetExtension( outputBinaryFileDoc.FileName ?? string.Empty ) ?? ".docx";
rockContext.SaveChanges();

if ( mergeTemplateType.Exceptions != null && mergeTemplateType.Exceptions.Any() )
{
if ( mergeTemplateType.Exceptions.Count == 1 )
Expand Down
5 changes: 0 additions & 5 deletions RockWeb/Blocks/Groups/GroupAttendanceDetail.ascx.cs
Expand Up @@ -447,11 +447,6 @@ protected void lbPrintAttendanceRoster_Click( object sender, EventArgs e )

outputBinaryFileDoc = mergeTemplateType.CreateDocument( mergeTemplate, mergeObjectList, mergeFields );

// Set the name of the output doc
outputBinaryFileDoc = new BinaryFileService( rockContext ).Get( outputBinaryFileDoc.Id );
outputBinaryFileDoc.FileName = _group.Name + " Attendance Roster" + Path.GetExtension( outputBinaryFileDoc.FileName ?? string.Empty ) ?? ".docx";
rockContext.SaveChanges();

if ( mergeTemplateType.Exceptions != null && mergeTemplateType.Exceptions.Any() )
{
if ( mergeTemplateType.Exceptions.Count == 1 )
Expand Down

0 comments on commit e0f974d

Please sign in to comment.