{"action":"closed","issue":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/4090","repository_url":"https://api.github.com/repos/concrete5/concrete5","labels_url":"https://api.github.com/repos/concrete5/concrete5/issues/4090/labels{/name}","comments_url":"https://api.github.com/repos/concrete5/concrete5/issues/4090/comments","events_url":"https://api.github.com/repos/concrete5/concrete5/issues/4090/events","html_url":"https://github.com/concrete5/concrete5/issues/4090","id":168898827,"number":4090,"title":"V8 beta 1 : Unable to programmatically create option for select page attribute","user":{"login":"hostco","id":1396217,"avatar_url":"https://avatars.githubusercontent.com/u/1396217?v=3","gravatar_id":"","url":"https://api.github.com/users/hostco","html_url":"https://github.com/hostco","followers_url":"https://api.github.com/users/hostco/followers","following_url":"https://api.github.com/users/hostco/following{/other_user}","gists_url":"https://api.github.com/users/hostco/gists{/gist_id}","starred_url":"https://api.github.com/users/hostco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostco/subscriptions","organizations_url":"https://api.github.com/users/hostco/orgs","repos_url":"https://api.github.com/users/hostco/repos","events_url":"https://api.github.com/users/hostco/events{/privacy}","received_events_url":"https://api.github.com/users/hostco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/concrete5/concrete5/labels/accepted:ready%20to%20start","name":"accepted:ready to start","color":"009800"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/priority:must%20have","name":"priority:must have","color":"ff0000"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"aembler","id":527809,"avatar_url":"https://avatars.githubusercontent.com/u/527809?v=3","gravatar_id":"","url":"https://api.github.com/users/aembler","html_url":"https://github.com/aembler","followers_url":"https://api.github.com/users/aembler/followers","following_url":"https://api.github.com/users/aembler/following{/other_user}","gists_url":"https://api.github.com/users/aembler/gists{/gist_id}","starred_url":"https://api.github.com/users/aembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aembler/subscriptions","organizations_url":"https://api.github.com/users/aembler/orgs","repos_url":"https://api.github.com/users/aembler/repos","events_url":"https://api.github.com/users/aembler/events{/privacy}","received_events_url":"https://api.github.com/users/aembler/received_events","type":"User","site_admin":false},"assignees":[{"login":"aembler","id":527809,"avatar_url":"https://avatars.githubusercontent.com/u/527809?v=3","gravatar_id":"","url":"https://api.github.com/users/aembler","html_url":"https://github.com/aembler","followers_url":"https://api.github.com/users/aembler/followers","following_url":"https://api.github.com/users/aembler/following{/other_user}","gists_url":"https://api.github.com/users/aembler/gists{/gist_id}","starred_url":"https://api.github.com/users/aembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aembler/subscriptions","organizations_url":"https://api.github.com/users/aembler/orgs","repos_url":"https://api.github.com/users/aembler/repos","events_url":"https://api.github.com/users/aembler/events{/privacy}","received_events_url":"https://api.github.com/users/aembler/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/concrete5/concrete5/milestones/17","html_url":"https://github.com/concrete5/concrete5/milestones/8.0","labels_url":"https://api.github.com/repos/concrete5/concrete5/milestones/17/labels","id":1471857,"number":17,"title":"8.0","description":"","creator":{"login":"aembler","id":527809,"avatar_url":"https://avatars.githubusercontent.com/u/527809?v=3","gravatar_id":"","url":"https://api.github.com/users/aembler","html_url":"https://github.com/aembler","followers_url":"https://api.github.com/users/aembler/followers","following_url":"https://api.github.com/users/aembler/following{/other_user}","gists_url":"https://api.github.com/users/aembler/gists{/gist_id}","starred_url":"https://api.github.com/users/aembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aembler/subscriptions","organizations_url":"https://api.github.com/users/aembler/orgs","repos_url":"https://api.github.com/users/aembler/repos","events_url":"https://api.github.com/users/aembler/events{/privacy}","received_events_url":"https://api.github.com/users/aembler/received_events","type":"User","site_admin":false},"open_issues":79,"closed_issues":39,"state":"open","created_at":"2015-12-22T20:49:37Z","updated_at":"2016-08-17T20:36:59Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-08-02T14:24:58Z","updated_at":"2016-08-17T20:36:59Z","closed_at":"2016-08-17T20:36:59Z","body":"This was working in all versions of 5.7.x\r\n\r\n`use \\Concrete\\Attribute\\Select\\Option as SelectAttributeTypeOption;`\r\n\r\n`$atkey = CollectionAttributeKey::getByHandle($akHandle);\r\n  foreach ($values as $val) {   \r\n   SelectAttributeTypeOption::add($atkey, $val);\r\n  }`\r\n\r\nWith V8 it gives this error\r\n\r\n`Whoops \\ Exception \\ ErrorException (E_ERROR)\r\n\r\nClass 'Concrete\\Attribute\\Select\\Option' not found`\r\n\r\nWill reverse compatibility be added for this, or is there a class and function that works for both versions that we are unaware of?"}}
{"actor":{"display_login":"aembler"}}