Fix objectID for article report button
authorJoshua Rüsweg <ruesweg@woltlab.com>
Sat, 20 Jul 2019 18:56:41 +0000 (20:56 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Sat, 20 Jul 2019 19:00:41 +0000 (21:00 +0200)
com.woltlab.wcf/templates/article.tpl

index 1b077010251cd8c83804bd7d4a213e3e64328e3e..5a3740888099520c1094fef44628f08a2867c943 100644 (file)
                                                <li class="jsOnly"><span class="button reactButton{if $articleLikeData[$article->articleID]|isset && $articleLikeData[$article->articleID]->reactionTypeID} active{/if}" title="{lang}wcf.reactions.react{/lang}" data-reaction-type-id="{if $articleLikeData[$article->articleID]|isset && $articleLikeData[$article->articleID]->reactionTypeID}{$articleLikeData[$article->articleID]->reactionTypeID}{else}0{/if}"><span class="icon icon16 fa-smile-o"></span> <span class="invisible">{lang}wcf.reactions.react{/lang}</span></span></li>
                                        {/if}
                                        {if $__wcf->session->getPermission('user.profile.canReportContent')}
-                                               <li class="jsReportArticle jsOnly" data-object-id="{@$articleContent->articleContentID}"><a href="#" title="{lang}wcf.moderation.report.reportContent{/lang}" class="button jsTooltip"><span class="icon icon16 fa-exclamation-triangle"></span> <span class="invisible">{lang}wcf.moderation.report.reportContent{/lang}</span></a></li>
+                                               <li class="jsReportArticle jsOnly" data-object-id="{@$articleContent->articleID}"><a href="#" title="{lang}wcf.moderation.report.reportContent{/lang}" class="button jsTooltip"><span class="icon icon16 fa-exclamation-triangle"></span> <span class="invisible">{lang}wcf.moderation.report.reportContent{/lang}</span></a></li>
                                        {/if}
                                </ul>
                        </div>