Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > WebPart Shortcuts View modes: 
User avatar
Member
Member
tomaszj - 1/21/2011 4:55:39 AM
   
WebPart Shortcuts
Hi,
I added two instances of Shortcut Webpart. In first instance property 'Display Invite to group link' is unchecked. In second instance this property is checked. Property 'Invite to group path' is empty in both instances. Link "Invite to group" don't work beacuse javascript function InviteToGroup() not exists in html.

Bug is in Shortcuts.ascx.cs in line:
ScriptHelper.RegisterClientScriptBlock(this, typeof(string), "Shortcuts", ScriptHelper.GetScript(script));
because parameter key of method RegisterClientScriptBlock is the same in all instances of WebPart on page.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 1/26/2011 3:33:56 AM
   
RE:WebPart Shortcuts
Hi,

Thank you for letting us know about this issue. Regrettably, this seems to be a bug in the current version. I'm very sorry for this inconvenience. We will try fix it in the nearest version or in the next hotfix package for this particular Kentico CMS version.

As a workaround - please add ClientID into the mentioned line of code.


// Register menu management scripts
ScriptHelper.RegisterClientScriptBlock(this, typeof(string), "Shortcuts" + ClientID, ScriptHelper.GetScript(script));


Best regards,
Ivana Tomanickova