Cannot follow multiple items on single page #2401
Labels
Priority: High
Affects most production Rock installs in a way that will be noticed.
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
x-Fixed in v6.10
Milestone
Prerequisites
Description
If you have multiple follow controls on the same page the script to initialize them will only be generated for the first control. This is due to the fact that the
RegisterStartupScript
method treats thetype + key
combination as unique. So if you try toSetFollowing
on two Panel controls, only one will get the script generated.Steps to Reproduce
Recommendation
Make the key unique by including the control's client identifier.
Use Case
I plan to have a list of items in the block, each item has a star that the user can use to follow that item. Currently working around this by duplicating the SetFollowing method with the recommended change.
Versions
The text was updated successfully, but these errors were encountered: