Skip to content

Commit

Permalink
+ (Finance) Fixed an issue with the transaction list block occasional…
Browse files Browse the repository at this point in the history
…ly showing back of check instead of the front. (Fixes #5108)
  • Loading branch information
nairdo committed Jul 11, 2023
1 parent db97962 commit 5b54ea1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RockWeb/Blocks/Finance/TransactionList.ascx.cs
Expand Up @@ -1978,8 +1978,9 @@ private void BindGrid( bool isExporting = false )
if ( showImages )
{
_imageBinaryFileIdLookupByTransactionId = new FinancialTransactionImageService( rockContext ).Queryable().Where( a => qry.Any( q => q.Id == a.TransactionId ) )
.Select( a => new { a.TransactionId, a.BinaryFileId } ).GroupBy( a => a.TransactionId ).ToList()
.ToDictionary( k => k.Key, v => v.Select( x => x.BinaryFileId ).ToList() );
.Select( a => new { a.TransactionId, a.BinaryFileId, a.Order } )
.GroupBy( a => a.TransactionId )
.ToDictionary( k => k.Key, v => v.OrderBy( x => x.Order ).Select( x => x.BinaryFileId ).ToList() );
}
else
{
Expand Down

0 comments on commit 5b54ea1

Please sign in to comment.