Improved assign user input
authorMarcel Werk <burntime@woltlab.com>
Wed, 13 Jul 2016 15:24:10 +0000 (17:24 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 13 Jul 2016 15:24:15 +0000 (17:24 +0200)
com.woltlab.wcf/templates/moderationQueueAssignUser.tpl

index f5f422b76baae321ea846c7ca6e96cbea82163d7..739019f3849a2a1a98dda94b90293434613b0233 100644 (file)
@@ -10,7 +10,7 @@
                                <li><label><input type="radio" name="assignedUserID" value="0"{if !$assignedUser} checked{/if}> {lang}wcf.moderation.assignedUser.nobody{/lang}</label></li>
                                <li>
                                        <input type="radio" name="assignedUserID" value="-1"{if !$assignedUser} checked{/if}>
-                                       <input type="text" id="assignedUsername" name="assignedUsername" value="{if $assignedUser}{$assignedUser->username}{/if}">
+                                       <input type="text" id="assignedUsername" name="assignedUsername" value="{if $assignedUser && $assignedUser->userID != $__wcf->getUser()->userID}{$assignedUser->username}{/if}">
                                        {*if $errorField == 'assignedUsername'}
                                                <small class="innerError">
                                                        {if $errorType == 'empty'}