{"action":"created","issue":{"url":"https://api.github.com/repos/akvo/akvo-flow/issues/1690","repository_url":"https://api.github.com/repos/akvo/akvo-flow","labels_url":"https://api.github.com/repos/akvo/akvo-flow/issues/1690/labels{/name}","comments_url":"https://api.github.com/repos/akvo/akvo-flow/issues/1690/comments","events_url":"https://api.github.com/repos/akvo/akvo-flow/issues/1690/events","html_url":"https://github.com/akvo/akvo-flow/issues/1690","id":158662683,"number":1690,"title":"Copying a survey breaks question settings ","user":{"login":"janagombitova","id":12456965,"avatar_url":"https://avatars.githubusercontent.com/u/12456965?v=3","gravatar_id":"","url":"https://api.github.com/users/janagombitova","html_url":"https://github.com/janagombitova","followers_url":"https://api.github.com/users/janagombitova/followers","following_url":"https://api.github.com/users/janagombitova/following{/other_user}","gists_url":"https://api.github.com/users/janagombitova/gists{/gist_id}","starred_url":"https://api.github.com/users/janagombitova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janagombitova/subscriptions","organizations_url":"https://api.github.com/users/janagombitova/orgs","repos_url":"https://api.github.com/users/janagombitova/repos","events_url":"https://api.github.com/users/janagombitova/events{/privacy}","received_events_url":"https://api.github.com/users/janagombitova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T12:09:34Z","updated_at":"2016-06-06T12:13:17Z","closed_at":null,"body":"When creating a copy of a non-monitored survey (will check monitored surveys later and add a comment) the survey is copied with all the questions, but once the user clicks on a question using 'edit'  all the setting for that questions are changed.\r\n\r\nI used: UAT1 > 1.9.8 UAT folder > Jana 1.9.8 > Jana 1.9.8 Non MF Surveys > 1.9.8 All questions survey\r\n\r\nSteps: \r\n1. Created 1.9.8 All questions survey with all question types and multiple option questions to check how codes work and other settings \r\n2. Copied the survey into the same folder and copied the survey 2nd time into a different folder \r\n3. For both copies, when opening the survey all settings were fine, the preview showed the questions as they were set in the original survey and form, but after opening a question (any as it happened for all questions) by clicking on 'edit' the question name was as in the original survey, but the type was \"free text\" and all the settings were gone. \r\n4. After changing the question type to \"option\" the options were showed again as expected\r\n\r\n![screen shot 2016-06-06 at 13 58 13](https://cloud.githubusercontent.com/assets/12456965/15821425/0d83e724-2bf0-11e6-930e-deef1c48aedd.png)\r\n![screen shot 2016-06-06 at 13 59 16](https://cloud.githubusercontent.com/assets/12456965/15821427/0ef60574-2bf0-11e6-97e3-e08b0468c8ec.png)\r\n![screen shot 2016-06-06 at 14 08 30](https://cloud.githubusercontent.com/assets/12456965/15821444/2f493fb2-2bf0-11e6-97c0-1bb36ad2a51f.png)\r\n\r\nThis situation was reproduced for all questions in the copied survey"},"comment":{"url":"https://api.github.com/repos/akvo/akvo-flow/issues/comments/223941605","html_url":"https://github.com/akvo/akvo-flow/issues/1690#issuecomment-223941605","issue_url":"https://api.github.com/repos/akvo/akvo-flow/issues/1690","id":223941605,"user":{"login":"janagombitova","id":12456965,"avatar_url":"https://avatars.githubusercontent.com/u/12456965?v=3","gravatar_id":"","url":"https://api.github.com/users/janagombitova","html_url":"https://github.com/janagombitova","followers_url":"https://api.github.com/users/janagombitova/followers","following_url":"https://api.github.com/users/janagombitova/following{/other_user}","gists_url":"https://api.github.com/users/janagombitova/gists{/gist_id}","starred_url":"https://api.github.com/users/janagombitova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janagombitova/subscriptions","organizations_url":"https://api.github.com/users/janagombitova/orgs","repos_url":"https://api.github.com/users/janagombitova/repos","events_url":"https://api.github.com/users/janagombitova/events{/privacy}","received_events_url":"https://api.github.com/users/janagombitova/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T12:13:17Z","updated_at":"2016-06-06T12:13:17Z","body":"Actually, after checking the original survey I learned, that for already existing questions, once I open them by clicking on 'edit' the settings are changed to 'free text' regardless if it was copied or not. This will cause confusion as the user will think he lost his work and might not remember the question settings. "}}
{"actor":{"display_login":"janagombitova"}}