Add isRoot() method to Album, only dump album ID in sone.xml if the parent is not...
[Sone.git] / src / main / resources / templates / insert / sone.xml
index 511cbf2..3d456d4 100644 (file)
@@ -67,7 +67,7 @@
                <%/first>
                <album>
                        <id><%album.id|xml></id>
-                       <%ifnull !album.parent>
+                       <%if !album.parent.root>
                        <parent><%album.parent.id|xml></parent>
                        <%/if>
                        <title><%album.title|xml></title>