{"action":"created","issue":{"url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/issues/48","labels_url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/issues/48/comments","events_url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/issues/48/events","html_url":"https://github.com/StudA-EPR/EPR-CRC/issues/48","id":70174099,"number":48,"title":"Optionen werden nicht richtig in <select> Box angezeigt","user":{"login":"llgb","id":5757757,"avatar_url":"https://avatars.githubusercontent.com/u/5757757?v=3","gravatar_id":"","url":"https://api.github.com/users/llgb","html_url":"https://github.com/llgb","followers_url":"https://api.github.com/users/llgb/followers","following_url":"https://api.github.com/users/llgb/following{/other_user}","gists_url":"https://api.github.com/users/llgb/gists{/gist_id}","starred_url":"https://api.github.com/users/llgb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llgb/subscriptions","organizations_url":"https://api.github.com/users/llgb/orgs","repos_url":"https://api.github.com/users/llgb/repos","events_url":"https://api.github.com/users/llgb/events{/privacy}","received_events_url":"https://api.github.com/users/llgb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"nsommer","id":5717791,"avatar_url":"https://avatars.githubusercontent.com/u/5717791?v=3","gravatar_id":"","url":"https://api.github.com/users/nsommer","html_url":"https://github.com/nsommer","followers_url":"https://api.github.com/users/nsommer/followers","following_url":"https://api.github.com/users/nsommer/following{/other_user}","gists_url":"https://api.github.com/users/nsommer/gists{/gist_id}","starred_url":"https://api.github.com/users/nsommer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsommer/subscriptions","organizations_url":"https://api.github.com/users/nsommer/orgs","repos_url":"https://api.github.com/users/nsommer/repos","events_url":"https://api.github.com/users/nsommer/events{/privacy}","received_events_url":"https://api.github.com/users/nsommer/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-22T16:28:15Z","updated_at":"2015-04-25T18:47:02Z","closed_at":null,"body":"Die dynamisch erstellten Selectboxen werden nicht korrekt mit den Werten der Optionen befüllt\r\n![fehleroptions](https://cloud.githubusercontent.com/assets/5757757/7279483/a2dd2884-e91c-11e4-9b3e-26b7e7df09db.JPG)\r\n\r\nWie man im Screenshot sehen kann, sieht es auf den ersten Blick nach einem Regex Problem aus.\r\nOptionen vom Typ \"TEXT\" werden korrekt dargestellt.\r\n\r\nDer Parameter \"Shutterspeed2\" (/main/capturesettings/shutterspeed2) wird im Quelltext wie folgt erstellt;\r\n```\r\n<select id=\"/main/capturesettings/shutterspeed2\" class=\"form-control\" name=\"/main/capturesettings/shutterspeed2\">\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">0</option>\r\n<option value=\"1\">/</option>\r\n<option value=\"1\">0</option>\r\n<option value=\"1\">0</option>\r\n<option value=\"1\">undefined</option>\r\n<option value=\"1\">3</option>\r\n<option value=\"1\">6</option>\r\n<option value=\"2\">undefined</option>\r\n<option value=\"2\">5</option>\r\n<option value=\"3\">undefined</option>\r\n<option value=\"4\">undefined</option>\r\n<option value=\"5\">undefined</option>\r\n<option value=\"6\">undefined</option>\r\n<option value=\"8\">undefined</option>\r\n<option value=\"1\">0</option>\r\n<option value=\"1\">3</option>\r\n<option value=\"1\">5</option>\r\n<option value=\"2\">0</option>\r\n<option value=\"2\">5</option>\r\n<option value=\"3\">0</option>\r\n```\r\n(ebenfalls zu beachten die \"value\" Werte)"},"comment":{"url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/issues/comments/96258901","html_url":"https://github.com/StudA-EPR/EPR-CRC/issues/48#issuecomment-96258901","issue_url":"https://api.github.com/repos/StudA-EPR/EPR-CRC/issues/48","id":96258901,"user":{"login":"llgb","id":5757757,"avatar_url":"https://avatars.githubusercontent.com/u/5757757?v=3","gravatar_id":"","url":"https://api.github.com/users/llgb","html_url":"https://github.com/llgb","followers_url":"https://api.github.com/users/llgb/followers","following_url":"https://api.github.com/users/llgb/following{/other_user}","gists_url":"https://api.github.com/users/llgb/gists{/gist_id}","starred_url":"https://api.github.com/users/llgb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llgb/subscriptions","organizations_url":"https://api.github.com/users/llgb/orgs","repos_url":"https://api.github.com/users/llgb/repos","events_url":"https://api.github.com/users/llgb/events{/privacy}","received_events_url":"https://api.github.com/users/llgb/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T18:47:02Z","updated_at":"2015-04-25T18:47:02Z","body":"Ausgabe für **/main/settings/imagecommentenable**\r\n```\r\nroot@OpenWrt:~# gphoto2 --get-config /main/settings/imagecommentenable\r\nLabel: Enable Image Comment\r\nType: RADIO\r\nCurrent: Off\r\nChoice: 0 On\r\nChoice: 1 Off\r\n```\r\n\r\nAusgabe für: **/main/capturesettings/shutterspeed2**\r\n```\r\nroot@OpenWrt:~# gphoto2 --get-config /main/capturesettings/shutterspeed2\r\nLabel: Shutter Speed 2\r\nType: RADIO\r\nCurrent: 25\r\nChoice: 0 1/4000\r\nChoice: 1 1/3200\r\nChoice: 2 1/2500\r\nChoice: 3 1/2000\r\nChoice: 4 1/1600\r\nChoice: 5 1/1250\r\nChoice: 6 1/1000\r\nChoice: 7 1/800\r\nChoice: 8 1/640\r\nChoice: 9 1/500\r\nChoice: 10 1/400\r\nChoice: 11 1/320\r\nChoice: 12 1/250\r\nChoice: 13 1/200\r\nChoice: 14 1/160\r\nChoice: 15 1/125\r\nChoice: 16 1/100\r\nChoice: 17 1/80\r\nChoice: 18 1/60\r\nChoice: 19 1/50\r\nChoice: 20 1/40\r\nChoice: 21 1/30\r\nChoice: 22 1/25\r\nChoice: 23 1/20\r\nChoice: 24 1/15\r\nChoice: 25 1/13\r\nChoice: 26 1/10\r\nChoice: 27 1/8\r\nChoice: 28 1/6\r\nChoice: 29 1/5\r\nChoice: 30 1/4\r\nChoice: 31 1/3\r\nChoice: 32 10/25\r\nChoice: 33 1/2\r\nChoice: 34 10/16\r\nChoice: 35 10/13\r\nChoice: 36 1\r\nChoice: 37 13/10\r\nChoice: 38 16/10\r\nChoice: 39 2\r\nChoice: 40 25/10\r\nChoice: 41 3\r\nChoice: 42 4\r\nChoice: 43 5\r\nChoice: 44 6\r\nChoice: 45 8\r\nChoice: 46 10\r\nChoice: 47 13\r\nChoice: 48 15\r\nChoice: 49 20\r\nChoice: 50 25\r\nChoice: 51 30\r\n```\r\n\r\nDie select-Optionen für die shutterspeed Einstellung stehen im vorherigen Post.\r\nDie für das Beispiel `/main/settings/imagecommentenable` sehen so aus:\r\n```\r\n<select id=\"/main/settings/imagecommentenable\" class=\"form-control\" name=\"/main/settings/imagecommentenable\">\r\n<option value=\"O\">n</option>\r\n<option value=\"O\">f</option>\r\n</select>\r\n```\r\n"}}