{"action":"created","comment":{"url":"https://api.github.com/repos/protich/osTicket-1.8/pulls/comments/25475857","id":25475857,"diff_hunk":"@@ -1324,10 +1324,14 @@ function validateEntry($entry) {\n         if (!$this->errors()) {\n             $config = $this->getConfiguration();\n             if ($config['widget'] == 'textbox') {\n-                if (!$entry\n-                        || !($k=key($entry))\n-                        || !($i=$this->getList()->getItem((int) $k)))\n-                    $this->_errors[] = __('Unknown or invalid input');\n+                if ($entry && (","path":"include/class.dynamic_forms.php","position":8,"original_position":8,"commit_id":"46b17ffdb6223f1b4cf82dd0a291b1225dcad466","original_commit_id":"46b17ffdb6223f1b4cf82dd0a291b1225dcad466","user":{"login":"greezybacon","id":672074,"avatar_url":"https://avatars.githubusercontent.com/u/672074?v=3","gravatar_id":"","url":"https://api.github.com/users/greezybacon","html_url":"https://github.com/greezybacon","followers_url":"https://api.github.com/users/greezybacon/followers","following_url":"https://api.github.com/users/greezybacon/following{/other_user}","gists_url":"https://api.github.com/users/greezybacon/gists{/gist_id}","starred_url":"https://api.github.com/users/greezybacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greezybacon/subscriptions","organizations_url":"https://api.github.com/users/greezybacon/orgs","repos_url":"https://api.github.com/users/greezybacon/repos","events_url":"https://api.github.com/users/greezybacon/events{/privacy}","received_events_url":"https://api.github.com/users/greezybacon/received_events","type":"User","site_admin":false},"body":"Is this correct? Or should we check\r\n```php\r\n$this->getWidget()->getEnteredValue()\r\n```","created_at":"2015-02-26T23:24:44Z","updated_at":"2015-02-26T23:24:44Z","html_url":"https://github.com/protich/osTicket-1.8/pull/4#discussion_r25475857","pull_request_url":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/protich/osTicket-1.8/pulls/comments/25475857"},"html":{"href":"https://github.com/protich/osTicket-1.8/pull/4#discussion_r25475857"},"pull_request":{"href":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4","id":30127631,"html_url":"https://github.com/protich/osTicket-1.8/pull/4","diff_url":"https://github.com/protich/osTicket-1.8/pull/4.diff","patch_url":"https://github.com/protich/osTicket-1.8/pull/4.patch","issue_url":"https://api.github.com/repos/protich/osTicket-1.8/issues/4","number":4,"state":"open","locked":false,"title":"forms: Add validator error to textbox widget for selection field","user":{"login":"greezybacon","id":672074,"avatar_url":"https://avatars.githubusercontent.com/u/672074?v=3","gravatar_id":"","url":"https://api.github.com/users/greezybacon","html_url":"https://github.com/greezybacon","followers_url":"https://api.github.com/users/greezybacon/followers","following_url":"https://api.github.com/users/greezybacon/following{/other_user}","gists_url":"https://api.github.com/users/greezybacon/gists{/gist_id}","starred_url":"https://api.github.com/users/greezybacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greezybacon/subscriptions","organizations_url":"https://api.github.com/users/greezybacon/orgs","repos_url":"https://api.github.com/users/greezybacon/repos","events_url":"https://api.github.com/users/greezybacon/events{/privacy}","received_events_url":"https://api.github.com/users/greezybacon/received_events","type":"User","site_admin":false},"body":"Allow admins to offer a custom error message when using the text input for a selection field.\r\n\r\nAlso, do not display this error message if the field was left blank.","created_at":"2015-02-26T23:24:23Z","updated_at":"2015-02-26T23:24:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff721a5abb72fa9e6b432367b1e4ec9a840881b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4/commits","review_comments_url":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4/comments","review_comment_url":"https://api.github.com/repos/protich/osTicket-1.8/pulls/comments{/number}","comments_url":"https://api.github.com/repos/protich/osTicket-1.8/issues/4/comments","statuses_url":"https://api.github.com/repos/protich/osTicket-1.8/statuses/46b17ffdb6223f1b4cf82dd0a291b1225dcad466","head":{"label":"greezybacon:feature/textbox-selection-widget","ref":"feature/textbox-selection-widget","sha":"46b17ffdb6223f1b4cf82dd0a291b1225dcad466","user":{"login":"greezybacon","id":672074,"avatar_url":"https://avatars.githubusercontent.com/u/672074?v=3","gravatar_id":"","url":"https://api.github.com/users/greezybacon","html_url":"https://github.com/greezybacon","followers_url":"https://api.github.com/users/greezybacon/followers","following_url":"https://api.github.com/users/greezybacon/following{/other_user}","gists_url":"https://api.github.com/users/greezybacon/gists{/gist_id}","starred_url":"https://api.github.com/users/greezybacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greezybacon/subscriptions","organizations_url":"https://api.github.com/users/greezybacon/orgs","repos_url":"https://api.github.com/users/greezybacon/repos","events_url":"https://api.github.com/users/greezybacon/events{/privacy}","received_events_url":"https://api.github.com/users/greezybacon/received_events","type":"User","site_admin":false},"repo":{"id":12064648,"name":"osTicket-1.8","full_name":"greezybacon/osTicket-1.8","owner":{"login":"greezybacon","id":672074,"avatar_url":"https://avatars.githubusercontent.com/u/672074?v=3","gravatar_id":"","url":"https://api.github.com/users/greezybacon","html_url":"https://github.com/greezybacon","followers_url":"https://api.github.com/users/greezybacon/followers","following_url":"https://api.github.com/users/greezybacon/following{/other_user}","gists_url":"https://api.github.com/users/greezybacon/gists{/gist_id}","starred_url":"https://api.github.com/users/greezybacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greezybacon/subscriptions","organizations_url":"https://api.github.com/users/greezybacon/orgs","repos_url":"https://api.github.com/users/greezybacon/repos","events_url":"https://api.github.com/users/greezybacon/events{/privacy}","received_events_url":"https://api.github.com/users/greezybacon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/greezybacon/osTicket-1.8","description":"Codename: Rumors","fork":true,"url":"https://api.github.com/repos/greezybacon/osTicket-1.8","forks_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/forks","keys_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/teams","hooks_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/hooks","issue_events_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/issues/events{/number}","events_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/events","assignees_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/assignees{/user}","branches_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/branches{/branch}","tags_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/tags","blobs_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/git/refs{/sha}","trees_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/statuses/{sha}","languages_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/languages","stargazers_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/stargazers","contributors_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/contributors","subscribers_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/subscribers","subscription_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/subscription","commits_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/commits{/sha}","git_commits_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/git/commits{/sha}","comments_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/comments{/number}","issue_comment_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/issues/comments{/number}","contents_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/contents/{+path}","compare_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/merges","archive_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/downloads","issues_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/issues{/number}","pulls_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/pulls{/number}","milestones_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/milestones{/number}","notifications_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/labels{/name}","releases_url":"https://api.github.com/repos/greezybacon/osTicket-1.8/releases{/id}","created_at":"2013-08-12T19:41:05Z","updated_at":"2015-02-13T15:59:05Z","pushed_at":"2015-02-26T23:19:34Z","git_url":"git://github.com/greezybacon/osTicket-1.8.git","ssh_url":"git@github.com:greezybacon/osTicket-1.8.git","clone_url":"https://github.com/greezybacon/osTicket-1.8.git","svn_url":"https://github.com/greezybacon/osTicket-1.8","homepage":null,"size":21936,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":0,"forks":6,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"protich:feature/textbox-selection-widget","ref":"feature/textbox-selection-widget","sha":"dd0da7a5ce22ac8ebd06b286f291cd4fbb62dcbf","user":{"login":"protich","id":31067,"avatar_url":"https://avatars.githubusercontent.com/u/31067?v=3","gravatar_id":"","url":"https://api.github.com/users/protich","html_url":"https://github.com/protich","followers_url":"https://api.github.com/users/protich/followers","following_url":"https://api.github.com/users/protich/following{/other_user}","gists_url":"https://api.github.com/users/protich/gists{/gist_id}","starred_url":"https://api.github.com/users/protich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protich/subscriptions","organizations_url":"https://api.github.com/users/protich/orgs","repos_url":"https://api.github.com/users/protich/repos","events_url":"https://api.github.com/users/protich/events{/privacy}","received_events_url":"https://api.github.com/users/protich/received_events","type":"User","site_admin":false},"repo":{"id":13451396,"name":"osTicket-1.8","full_name":"protich/osTicket-1.8","owner":{"login":"protich","id":31067,"avatar_url":"https://avatars.githubusercontent.com/u/31067?v=3","gravatar_id":"","url":"https://api.github.com/users/protich","html_url":"https://github.com/protich","followers_url":"https://api.github.com/users/protich/followers","following_url":"https://api.github.com/users/protich/following{/other_user}","gists_url":"https://api.github.com/users/protich/gists{/gist_id}","starred_url":"https://api.github.com/users/protich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protich/subscriptions","organizations_url":"https://api.github.com/users/protich/orgs","repos_url":"https://api.github.com/users/protich/repos","events_url":"https://api.github.com/users/protich/events{/privacy}","received_events_url":"https://api.github.com/users/protich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/protich/osTicket-1.8","description":"Codename: Rumors","fork":true,"url":"https://api.github.com/repos/protich/osTicket-1.8","forks_url":"https://api.github.com/repos/protich/osTicket-1.8/forks","keys_url":"https://api.github.com/repos/protich/osTicket-1.8/keys{/key_id}","collaborators_url":"https://api.github.com/repos/protich/osTicket-1.8/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/protich/osTicket-1.8/teams","hooks_url":"https://api.github.com/repos/protich/osTicket-1.8/hooks","issue_events_url":"https://api.github.com/repos/protich/osTicket-1.8/issues/events{/number}","events_url":"https://api.github.com/repos/protich/osTicket-1.8/events","assignees_url":"https://api.github.com/repos/protich/osTicket-1.8/assignees{/user}","branches_url":"https://api.github.com/repos/protich/osTicket-1.8/branches{/branch}","tags_url":"https://api.github.com/repos/protich/osTicket-1.8/tags","blobs_url":"https://api.github.com/repos/protich/osTicket-1.8/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/protich/osTicket-1.8/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/protich/osTicket-1.8/git/refs{/sha}","trees_url":"https://api.github.com/repos/protich/osTicket-1.8/git/trees{/sha}","statuses_url":"https://api.github.com/repos/protich/osTicket-1.8/statuses/{sha}","languages_url":"https://api.github.com/repos/protich/osTicket-1.8/languages","stargazers_url":"https://api.github.com/repos/protich/osTicket-1.8/stargazers","contributors_url":"https://api.github.com/repos/protich/osTicket-1.8/contributors","subscribers_url":"https://api.github.com/repos/protich/osTicket-1.8/subscribers","subscription_url":"https://api.github.com/repos/protich/osTicket-1.8/subscription","commits_url":"https://api.github.com/repos/protich/osTicket-1.8/commits{/sha}","git_commits_url":"https://api.github.com/repos/protich/osTicket-1.8/git/commits{/sha}","comments_url":"https://api.github.com/repos/protich/osTicket-1.8/comments{/number}","issue_comment_url":"https://api.github.com/repos/protich/osTicket-1.8/issues/comments{/number}","contents_url":"https://api.github.com/repos/protich/osTicket-1.8/contents/{+path}","compare_url":"https://api.github.com/repos/protich/osTicket-1.8/compare/{base}...{head}","merges_url":"https://api.github.com/repos/protich/osTicket-1.8/merges","archive_url":"https://api.github.com/repos/protich/osTicket-1.8/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/protich/osTicket-1.8/downloads","issues_url":"https://api.github.com/repos/protich/osTicket-1.8/issues{/number}","pulls_url":"https://api.github.com/repos/protich/osTicket-1.8/pulls{/number}","milestones_url":"https://api.github.com/repos/protich/osTicket-1.8/milestones{/number}","notifications_url":"https://api.github.com/repos/protich/osTicket-1.8/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/protich/osTicket-1.8/labels{/name}","releases_url":"https://api.github.com/repos/protich/osTicket-1.8/releases{/id}","created_at":"2013-10-09T19:10:04Z","updated_at":"2015-02-24T04:10:03Z","pushed_at":"2015-02-26T20:44:13Z","git_url":"git://github.com/protich/osTicket-1.8.git","ssh_url":"git@github.com:protich/osTicket-1.8.git","clone_url":"https://github.com/protich/osTicket-1.8.git","svn_url":"https://github.com/protich/osTicket-1.8","homepage":null,"size":19271,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4"},"html":{"href":"https://github.com/protich/osTicket-1.8/pull/4"},"issue":{"href":"https://api.github.com/repos/protich/osTicket-1.8/issues/4"},"comments":{"href":"https://api.github.com/repos/protich/osTicket-1.8/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/protich/osTicket-1.8/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/protich/osTicket-1.8/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/protich/osTicket-1.8/statuses/46b17ffdb6223f1b4cf82dd0a291b1225dcad466"}}}}