{"action":"created","issue":{"url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61","labels_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61/comments","events_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61/events","html_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61","id":92875298,"number":61,"title":"ABU-786 Fix","user":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-03T13:23:50Z","updated_at":"2015-07-14T15:12:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61","html_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61","diff_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61.diff","patch_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61.patch"},"body":"Missing else in the isCorrect resulting in specific and generic answer marking called in the same time.\r\nChanged the _.contains that is case sensitive to _.filter that allows to modify casing content of possible answers item\r\n\r\nIn addition to the ABU-786 the components.json needs to be modified to be:\r\n\r\n```\r\n\t{\r\n\t\t\"_id\": \"c-70\",\r\n\t\t\"_parentId\": \"b-55\",\r\n\t\t\"_type\": \"component\",\r\n\t\t\"_component\": \"textinput\",\r\n\t\t\"_classes\": \"\",\r\n\t\t\"_layout\": \"left\",\r\n\t\t\"_attempts\": 1,\r\n\t\t\"_questionWeight\": 1,\r\n\t\t\"_isRandom\": true,\r\n\t\t\"_allowsAnyCase\": true,\r\n\t\t\"_allowsPunctuation\": true,\r\n\t\t\"title\": \"Text Input\",\r\n\t\t\"displayTitle\": \"Text Input\",\r\n\t\t\"body\": \"Can you name one of the three companies that established Adapt is a community led Open Source project?\",\r\n\t\t\"instruction\": \"Input your answers and select Submit.\",\r\n            \"_answers\": [\r\n                [\"City & Guilds Kineo\"],\r\n                [\"Learning Pool\"],\r\n                [\"Sponge\"]\r\n            ],\r\n\t\t\"_items\": [\r\n\t\t\t{\r\n\t\t\t\t\"prefix\": \"prefix\",\r\n\t\t\t\t\"placeholder\": \"Enter answer here\",\r\n\r\n\t\t\t\t\"suffix\": \"suffix\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"prefix\": \"\",\r\n\t\t\t\t\"placeholder\": \"Enter answer here\",\r\n\r\n\t\t\t\t\"suffix\": \"\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"prefix\": \"\",\r\n\t\t\t\t\"placeholder\": \"Enter answer here\",\r\n\r\n\t\t\t\t\"suffix\": \"\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"_feedback\": {\r\n\t\t\t\"correct\": \"Correct answer feedback.<br><br>That’s correct. The Adapt Open Source project was established by City & Guilds Kineo, Learning Pool and Sponge. At the time of the writing there a total of seven <a href='https://community.adaptlearning.org/mod/page/view.php?id=51' target='_blank'>official collaborators</a>.<br><br>Component facts: <strong>Text input</strong> components let learners enter their own answers, which is great for questions that require a bit more flexibility, like those with answers that could be written as both full words and numbers.\",\r\n\t\t\t\"_partlyCorrect\": {\r\n\t\t\t\t\"notFinal\": \"notFinal\",\r\n\t\t\t\t\"final\": \"Incorrect answer feedback.<br><br>Sorry, that’s not right. The Adapt Open Source project was established by City & Guilds Kineo, Learning Pool and Sponge. At the time of the writing there a total of seven <a href='https://community.adaptlearning.org/mod/page/view.php?id=51' target='_blank'>official collaborators</a>.<br><br>Component facts: <strong>Text input</strong> components let learners enter their own answers, which is great for questions that require a bit more flexibility, like those with answers that could be written as both full words and numbers.\"\r\n\t\t\t},\r\n\t\t\t\"_incorrect\": {\r\n\t\t\t\t\"notFinal\": \"notFinal\",\r\n\t\t\t\t\"final\": \"Incorrect answer feedback.<br><br>Sorry, that’s not right. The Adapt Open Source project was established by City & Guilds Kineo, Learning Pool and Sponge. At the time of the writing there a total of seven <a href='https://community.adaptlearning.org/mod/page/view.php?id=51' target='_blank'>official collaborators</a>.<br><br>Component facts: <strong>Text input</strong> components let learners enter their own answers, which is great for questions that require a bit more flexibility, like those with answers that could be written as both full words and numbers.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"_pageLevelProgress\": {\r\n\t\t\t\"_isEnabled\": true\r\n\t\t}\r\n\t},\r\n```\r\nadded _answers at the top level, when generic answers list used, correct answers are also taken from this list."},"comment":{"url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/comments/121278117","html_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61#issuecomment-121278117","issue_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61","id":121278117,"user":{"login":"taylortom","id":1059083,"avatar_url":"https://avatars.githubusercontent.com/u/1059083?v=3","gravatar_id":"","url":"https://api.github.com/users/taylortom","html_url":"https://github.com/taylortom","followers_url":"https://api.github.com/users/taylortom/followers","following_url":"https://api.github.com/users/taylortom/following{/other_user}","gists_url":"https://api.github.com/users/taylortom/gists{/gist_id}","starred_url":"https://api.github.com/users/taylortom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylortom/subscriptions","organizations_url":"https://api.github.com/users/taylortom/orgs","repos_url":"https://api.github.com/users/taylortom/repos","events_url":"https://api.github.com/users/taylortom/events{/privacy}","received_events_url":"https://api.github.com/users/taylortom/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T15:12:30Z","updated_at":"2015-07-14T15:12:30Z","body":"+1"}}