Fix article sort fields are affected other categories
authorJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 11:49:31 +0000 (13:49 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Mon, 6 Aug 2018 11:49:31 +0000 (13:49 +0200)
See #2508

com.woltlab.wcf/templateListener.xml

index 4b08593111cce709bf5c8af7ee0ee82016c048d2..ee8a1395581ecc76b1cad81db45377420406354d 100644 (file)
@@ -5,7 +5,7 @@
                        <environment>admin</environment>
                        <templatename>categoryAdd</templatename>
                        <eventname>dataFields</eventname>
-                       <templatecode><![CDATA[{include file='__articleSortField'}]]></templatecode>
+                       <templatecode><![CDATA[{if $objectType->objectType == "com.woltlab.wcf.article.category"}{include file='__articleSortField'}{/if}]]></templatecode>
                </templatelistener>
        </import>
        <delete>