{"action":"opened","number":665,"pull_request":{"url":"https://api.github.com/repos/mantisbt/mantisbt/pulls/665","id":48626710,"html_url":"https://github.com/mantisbt/mantisbt/pull/665","diff_url":"https://github.com/mantisbt/mantisbt/pull/665.diff","patch_url":"https://github.com/mantisbt/mantisbt/pull/665.patch","issue_url":"https://api.github.com/repos/mantisbt/mantisbt/issues/665","number":665,"state":"open","locked":false,"title":"print_enum_string_option_list accept array of current values","user":{"login":"cproensa","id":14123811,"avatar_url":"https://avatars.githubusercontent.com/u/14123811?v=3","gravatar_id":"","url":"https://api.github.com/users/cproensa","html_url":"https://github.com/cproensa","followers_url":"https://api.github.com/users/cproensa/followers","following_url":"https://api.github.com/users/cproensa/following{/other_user}","gists_url":"https://api.github.com/users/cproensa/gists{/gist_id}","starred_url":"https://api.github.com/users/cproensa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cproensa/subscriptions","organizations_url":"https://api.github.com/users/cproensa/orgs","repos_url":"https://api.github.com/users/cproensa/repos","events_url":"https://api.github.com/users/cproensa/events{/privacy}","received_events_url":"https://api.github.com/users/cproensa/received_events","type":"User","site_admin":false},"body":"This function was defined to accept a integer value, to check\r\nagainst when building the option list, so it gets defaulted.\r\nSome places (filter fileds) were calling with this value as\r\nan array of one int, or several ints (for multiselection\r\noption list).\r\nChanged parameter to accept array, since the check_selected\r\nfunction already accepts an array of values to check.\r\nAdding a check for the case $p_val is a single value to cast\r\nit to an int, becasue check_select should be called in\r\nstrict mode for enum keys anyways, and some callers may still\r\npass a number as string.\r\nThen, in the case of \"array of int\", the caller must ensure\r\nvalues are proper int type.\r\n\r\nfixes #0019978 (or more)","created_at":"2015-10-23T20:32:51Z","updated_at":"2015-10-23T20:32:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mantisbt/mantisbt/pulls/665/commits","review_comments_url":"https://api.github.com/repos/mantisbt/mantisbt/pulls/665/comments","review_comment_url":"https://api.github.com/repos/mantisbt/mantisbt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mantisbt/mantisbt/issues/665/comments","statuses_url":"https://api.github.com/repos/mantisbt/mantisbt/statuses/4f5ff0453e3c16985b641f5499858f99c188059a","head":{"label":"cproensa:0019978_values_preserved_in_filters","ref":"0019978_values_preserved_in_filters","sha":"4f5ff0453e3c16985b641f5499858f99c188059a","user":{"login":"cproensa","id":14123811,"avatar_url":"https://avatars.githubusercontent.com/u/14123811?v=3","gravatar_id":"","url":"https://api.github.com/users/cproensa","html_url":"https://github.com/cproensa","followers_url":"https://api.github.com/users/cproensa/followers","following_url":"https://api.github.com/users/cproensa/following{/other_user}","gists_url":"https://api.github.com/users/cproensa/gists{/gist_id}","starred_url":"https://api.github.com/users/cproensa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cproensa/subscriptions","organizations_url":"https://api.github.com/users/cproensa/orgs","repos_url":"https://api.github.com/users/cproensa/repos","events_url":"https://api.github.com/users/cproensa/events{/privacy}","received_events_url":"https://api.github.com/users/cproensa/received_events","type":"User","site_admin":false},"repo":{"id":42000375,"name":"mantisbt","full_name":"cproensa/mantisbt","owner":{"login":"cproensa","id":14123811,"avatar_url":"https://avatars.githubusercontent.com/u/14123811?v=3","gravatar_id":"","url":"https://api.github.com/users/cproensa","html_url":"https://github.com/cproensa","followers_url":"https://api.github.com/users/cproensa/followers","following_url":"https://api.github.com/users/cproensa/following{/other_user}","gists_url":"https://api.github.com/users/cproensa/gists{/gist_id}","starred_url":"https://api.github.com/users/cproensa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cproensa/subscriptions","organizations_url":"https://api.github.com/users/cproensa/orgs","repos_url":"https://api.github.com/users/cproensa/repos","events_url":"https://api.github.com/users/cproensa/events{/privacy}","received_events_url":"https://api.github.com/users/cproensa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cproensa/mantisbt","description":"Mantis Bug Tracker (MantisBT)","fork":true,"url":"https://api.github.com/repos/cproensa/mantisbt","forks_url":"https://api.github.com/repos/cproensa/mantisbt/forks","keys_url":"https://api.github.com/repos/cproensa/mantisbt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cproensa/mantisbt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cproensa/mantisbt/teams","hooks_url":"https://api.github.com/repos/cproensa/mantisbt/hooks","issue_events_url":"https://api.github.com/repos/cproensa/mantisbt/issues/events{/number}","events_url":"https://api.github.com/repos/cproensa/mantisbt/events","assignees_url":"https://api.github.com/repos/cproensa/mantisbt/assignees{/user}","branches_url":"https://api.github.com/repos/cproensa/mantisbt/branches{/branch}","tags_url":"https://api.github.com/repos/cproensa/mantisbt/tags","blobs_url":"https://api.github.com/repos/cproensa/mantisbt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cproensa/mantisbt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cproensa/mantisbt/git/refs{/sha}","trees_url":"https://api.github.com/repos/cproensa/mantisbt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cproensa/mantisbt/statuses/{sha}","languages_url":"https://api.github.com/repos/cproensa/mantisbt/languages","stargazers_url":"https://api.github.com/repos/cproensa/mantisbt/stargazers","contributors_url":"https://api.github.com/repos/cproensa/mantisbt/contributors","subscribers_url":"https://api.github.com/repos/cproensa/mantisbt/subscribers","subscription_url":"https://api.github.com/repos/cproensa/mantisbt/subscription","commits_url":"https://api.github.com/repos/cproensa/mantisbt/commits{/sha}","git_commits_url":"https://api.github.com/repos/cproensa/mantisbt/git/commits{/sha}","comments_url":"https://api.github.com/repos/cproensa/mantisbt/comments{/number}","issue_comment_url":"https://api.github.com/repos/cproensa/mantisbt/issues/comments{/number}","contents_url":"https://api.github.com/repos/cproensa/mantisbt/contents/{+path}","compare_url":"https://api.github.com/repos/cproensa/mantisbt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cproensa/mantisbt/merges","archive_url":"https://api.github.com/repos/cproensa/mantisbt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cproensa/mantisbt/downloads","issues_url":"https://api.github.com/repos/cproensa/mantisbt/issues{/number}","pulls_url":"https://api.github.com/repos/cproensa/mantisbt/pulls{/number}","milestones_url":"https://api.github.com/repos/cproensa/mantisbt/milestones{/number}","notifications_url":"https://api.github.com/repos/cproensa/mantisbt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cproensa/mantisbt/labels{/name}","releases_url":"https://api.github.com/repos/cproensa/mantisbt/releases{/id}","created_at":"2015-09-06T11:36:59Z","updated_at":"2015-09-06T11:37:03Z","pushed_at":"2015-10-23T20:31:50Z","git_url":"git://github.com/cproensa/mantisbt.git","ssh_url":"git@github.com:cproensa/mantisbt.git","clone_url":"https://github.com/cproensa/mantisbt.git","svn_url":"https://github.com/cproensa/mantisbt","homepage":"http://www.mantisbt.org","size":48646,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mantisbt:master","ref":"master","sha":"e7bc61f1b885ce5790a8af01b51ebb9e696301b9","user":{"login":"mantisbt","id":318027,"avatar_url":"https://avatars.githubusercontent.com/u/318027?v=3","gravatar_id":"","url":"https://api.github.com/users/mantisbt","html_url":"https://github.com/mantisbt","followers_url":"https://api.github.com/users/mantisbt/followers","following_url":"https://api.github.com/users/mantisbt/following{/other_user}","gists_url":"https://api.github.com/users/mantisbt/gists{/gist_id}","starred_url":"https://api.github.com/users/mantisbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mantisbt/subscriptions","organizations_url":"https://api.github.com/users/mantisbt/orgs","repos_url":"https://api.github.com/users/mantisbt/repos","events_url":"https://api.github.com/users/mantisbt/events{/privacy}","received_events_url":"https://api.github.com/users/mantisbt/received_events","type":"Organization","site_admin":false},"repo":{"id":747755,"name":"mantisbt","full_name":"mantisbt/mantisbt","owner":{"login":"mantisbt","id":318027,"avatar_url":"https://avatars.githubusercontent.com/u/318027?v=3","gravatar_id":"","url":"https://api.github.com/users/mantisbt","html_url":"https://github.com/mantisbt","followers_url":"https://api.github.com/users/mantisbt/followers","following_url":"https://api.github.com/users/mantisbt/following{/other_user}","gists_url":"https://api.github.com/users/mantisbt/gists{/gist_id}","starred_url":"https://api.github.com/users/mantisbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mantisbt/subscriptions","organizations_url":"https://api.github.com/users/mantisbt/orgs","repos_url":"https://api.github.com/users/mantisbt/repos","events_url":"https://api.github.com/users/mantisbt/events{/privacy}","received_events_url":"https://api.github.com/users/mantisbt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mantisbt/mantisbt","description":"Mantis Bug Tracker (MantisBT)","fork":false,"url":"https://api.github.com/repos/mantisbt/mantisbt","forks_url":"https://api.github.com/repos/mantisbt/mantisbt/forks","keys_url":"https://api.github.com/repos/mantisbt/mantisbt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mantisbt/mantisbt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mantisbt/mantisbt/teams","hooks_url":"https://api.github.com/repos/mantisbt/mantisbt/hooks","issue_events_url":"https://api.github.com/repos/mantisbt/mantisbt/issues/events{/number}","events_url":"https://api.github.com/repos/mantisbt/mantisbt/events","assignees_url":"https://api.github.com/repos/mantisbt/mantisbt/assignees{/user}","branches_url":"https://api.github.com/repos/mantisbt/mantisbt/branches{/branch}","tags_url":"https://api.github.com/repos/mantisbt/mantisbt/tags","blobs_url":"https://api.github.com/repos/mantisbt/mantisbt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mantisbt/mantisbt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mantisbt/mantisbt/git/refs{/sha}","trees_url":"https://api.github.com/repos/mantisbt/mantisbt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mantisbt/mantisbt/statuses/{sha}","languages_url":"https://api.github.com/repos/mantisbt/mantisbt/languages","stargazers_url":"https://api.github.com/repos/mantisbt/mantisbt/stargazers","contributors_url":"https://api.github.com/repos/mantisbt/mantisbt/contributors","subscribers_url":"https://api.github.com/repos/mantisbt/mantisbt/subscribers","subscription_url":"https://api.github.com/repos/mantisbt/mantisbt/subscription","commits_url":"https://api.github.com/repos/mantisbt/mantisbt/commits{/sha}","git_commits_url":"https://api.github.com/repos/mantisbt/mantisbt/git/commits{/sha}","comments_url":"https://api.github.com/repos/mantisbt/mantisbt/comments{/number}","issue_comment_url":"https://api.github.com/repos/mantisbt/mantisbt/issues/comments{/number}","contents_url":"https://api.github.com/repos/mantisbt/mantisbt/contents/{+path}","compare_url":"https://api.github.com/repos/mantisbt/mantisbt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mantisbt/mantisbt/merges","archive_url":"https://api.github.com/repos/mantisbt/mantisbt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mantisbt/mantisbt/downloads","issues_url":"https://api.github.com/repos/mantisbt/mantisbt/issues{/number}","pulls_url":"https://api.github.com/repos/mantisbt/mantisbt/pulls{/number}","milestones_url":"https://api.github.com/repos/mantisbt/mantisbt/milestones{/number}","notifications_url":"https://api.github.com/repos/mantisbt/mantisbt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mantisbt/mantisbt/labels{/name}","releases_url":"https://api.github.com/repos/mantisbt/mantisbt/releases{/id}","created_at":"2010-06-29T21:42:07Z","updated_at":"2015-10-22T21:23:06Z","pushed_at":"2015-10-23T16:49:30Z","git_url":"git://github.com/mantisbt/mantisbt.git","ssh_url":"git@github.com:mantisbt/mantisbt.git","clone_url":"https://github.com/mantisbt/mantisbt.git","svn_url":"https://github.com/mantisbt/mantisbt","homepage":"http://www.mantisbt.org","size":61492,"stargazers_count":521,"watchers_count":521,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":276,"mirror_url":null,"open_issues_count":68,"forks":276,"open_issues":68,"watchers":521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mantisbt/mantisbt/pulls/665"},"html":{"href":"https://github.com/mantisbt/mantisbt/pull/665"},"issue":{"href":"https://api.github.com/repos/mantisbt/mantisbt/issues/665"},"comments":{"href":"https://api.github.com/repos/mantisbt/mantisbt/issues/665/comments"},"review_comments":{"href":"https://api.github.com/repos/mantisbt/mantisbt/pulls/665/comments"},"review_comment":{"href":"https://api.github.com/repos/mantisbt/mantisbt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mantisbt/mantisbt/pulls/665/commits"},"statuses":{"href":"https://api.github.com/repos/mantisbt/mantisbt/statuses/4f5ff0453e3c16985b641f5499858f99c188059a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":2,"changed_files":1}}