CKS.TagCloud Internal name

Topics: Enhanced Blog Edition, Enhanced Wiki Edition
Mar 26, 2008 at 3:22 PM
in not-English language or when Display Name and Internal Name of Tag field are different "Tag Browser Web Part" and "Related Tag Cloud" go in troubles.
This occurs because in Tag Cloud v. 1.2 code:

if (list.Fields.ContainsField(this.tagColumnName))
is true when this.tagColumnName is display name too, but following query string <FieldRef ... requires Internal Name only.

If I change code in:
if (list.Fields.ContainsField(this.tagColumnName))
{
string intName = list.Fields.GetField(this.tagColumnName).InternalName;
SPQuery query = new SPQuery();
query.Query = "<Where><Contains><FieldRef Name=\"" + intName + "\" />" +
"<Value Type=\"Text\">" + TagName + "</Value>" +
"</Contains></Where>";

all queries are fine.