Issue 12309 - The template fullyQualifiedName returns wrong result

https://d.puremagic.com/issues/show_bug.cgi?id=12309