Bug reports Found a bug? Post it here please.
Version 6.x > Bug reports > Method ResolveBBCode has invalid number of arguments View modes: 
User avatar
Certified Developer v6
Certified Developer v6
szarouski - 6/23/2012 10:39:14 PM
   
Method ResolveBBCode has invalid number of arguments
Hello,
I'm trying to show text, entered with BBcode editor, using macro and in documentation is says that I should use ResolveBBCode method. Here is my macro:
ResolveBBCode(CurrentDocument.ContentEntry)

And here is what I'm seeing in macro's debug info:
Error while evaluating expression: ResolveBBCode(CurrentDocument.ContentEntry)|(user)administrator|(hash)f6844dbce7d87e55f79f530e0e8363b43379f51089410ebdc2e616032d2210f6 [MacroExpression.Evaluate]: Method ResolveBBCode has invalid number of arguments.

In popup box it shows that ResolveBBCode accepts one argument - string. Also I tried to call in like that and got same error:
ResolveBBCode(" \[b\] test \[/b\] test")

(Sorry, seems like I can't insert last example without escaping '[' with '\[')

Is that a bug?
Thank you.

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 6/23/2012 10:41:24 PM
   
RE:Method ResolveBBCode has invalid number of arguments
Sorry, forgot to mention that I'm using version 6.0.20 (also checked hotfixes feed - there is nothing about ResolveBBCode, so probably error isn't fixed yet).

User avatar
Certified Developer v6
Certified Developer v6
szarouski - 6/23/2012 10:47:56 PM
   
RE:Method ResolveBBCode has invalid number of arguments
At the same time, looks like if I will try |(resolvebbcode)true macro parameter - it will work. Anyway, hope someone will fix this error.

Thanks

User avatar
Member
Member
kentico_michal - 6/28/2012 2:42:44 AM
   
RE:Method ResolveBBCode has invalid number of arguments
Hi,

Regrettably, this really seems to be a bug in the current version. Thank you for letting us know about this issue. We will try to fix it in one of the next hotfixes for Kentico CMS 6.0. I am sorry for this inconvenience.


Best regards,
Michal Legen