Small GUI improvement
authorMarcel Werk <burntime@woltlab.com>
Tue, 3 Jun 2014 19:08:23 +0000 (21:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 3 Jun 2014 19:08:23 +0000 (21:08 +0200)
wcfsetup/install/files/acp/templates/userSearch.tpl
wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php

index c39b49108a4e583aecf7a52fd1f95dc38d052601..e4a8c328bea0325057e1abd9101993e1eb1ff81e 100644 (file)
@@ -70,7 +70,7 @@
                                <dl>
                                        <dt><label for="userID">{lang}wcf.user.userID{/lang}</label></dt>
                                        <dd>
-                                               <input type="text" id="userID" name="userID" value="{$userID}" class="short" />
+                                               <input type="number" id="userID" name="userID" value="{$userID}" class="short" />
                                        </dd>
                                </dl>
                                
index 96d8894a7c7894f5f606380fa408b00fc20a07d1..0735156f827e8eeb55974d09d0713a1f25b32ed9 100755 (executable)
@@ -49,7 +49,7 @@ class UserSearchForm extends UserOptionListForm {
         * user id
         * @var integer
         */
-       public $userID = 0;
+       public $userID = null;
        
        /**
         * group ids
@@ -198,7 +198,7 @@ class UserSearchForm extends UserOptionListForm {
                
                if (isset($_POST['username'])) $this->username = StringUtil::trim($_POST['username']);
                if (isset($_POST['email'])) $this->email = StringUtil::trim($_POST['email']);
-               if (isset($_POST['userID'])) $this->userID = intval($_POST['userID']);
+               if (!empty($_POST['userID'])) $this->userID = intval($_POST['userID']);
                if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
                if (isset($_POST['languageIDs']) && is_array($_POST['languageIDs'])) $this->languageIDs = ArrayUtil::toIntegerArray($_POST['languageIDs']);
                if (isset($_POST['invertGroupIDs'])) $this->invertGroupIDs = intval($_POST['invertGroupIDs']);