The issue looks to be that window["Rock"].personalLinks did not exist because we did not have the Personal Links block. In LavaFilters.cs, the following comment exists:
/// <summary>
/// Adds a QuickReturn to PersonalLinks.
/// Note that this is only supported for pages that have the PersonalLinks block on it.
/// </summary>
/// <param name="input">The input.</param>
/// <param name="typeName">Name of the type.</param>
/// <param name="typeOrder">The type order.</param>
public static void AddQuickReturn( string input, string typeName, int typeOrder = 0 )
So I added the Personal Links block to our header section and the error went away.
Actual Behavior
Financial Details Block should load even when Personal Links block doesn't exist.
Expected Behavior
Financial Details Block fails to load.
Steps to Reproduce
Go to Batches
Select an existing Batch (it has to be an existing batch so that you are updating it -- this doesn't happen during initial batch creation)
Select the block editor
Remove the Personal Links block from the Header section.
Observe that the error occurs and the panel for the batch details does not render.
Issue Confirmation
[X] Perform a search on the Github Issues to see if your bug or enhancement is already reported.
[X] Try to reproduce the problem on a fresh install or on the demo site.
Description
After upgrading from 12 to 16.4, our header for the internal site was missing the "Personal Links" block.
This was causing an error message to appear where the block was:
I traced this back to Utility.js:2624, which does:
The issue looks to be that
window["Rock"].personalLinks
did not exist because we did not have the Personal Links block. In LavaFilters.cs, the following comment exists:So I added the Personal Links block to our header section and the error went away.
Actual Behavior
Financial Details Block should load even when Personal Links block doesn't exist.
Expected Behavior
Financial Details Block fails to load.
Steps to Reproduce
Batches
Issue Confirmation
Rock Version
16.5
Client Culture Setting
en-US