{"action":"created","issue":{"url":"https://api.github.com/repos/Inria-Asclepios/medInria-public/issues/237","repository_url":"https://api.github.com/repos/Inria-Asclepios/medInria-public","labels_url":"https://api.github.com/repos/Inria-Asclepios/medInria-public/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/Inria-Asclepios/medInria-public/issues/237/comments","events_url":"https://api.github.com/repos/Inria-Asclepios/medInria-public/issues/237/events","html_url":"https://github.com/Inria-Asclepios/medInria-public/issues/237","id":217825186,"number":237,"title":"[medDatabase] Data thumbnail replaced by '?' when saving from temporary to persistent database","user":{"login":"mjuhoor","id":1325088,"avatar_url":"https://avatars1.githubusercontent.com/u/1325088?v=3","gravatar_id":"","url":"https://api.github.com/users/mjuhoor","html_url":"https://github.com/mjuhoor","followers_url":"https://api.github.com/users/mjuhoor/followers","following_url":"https://api.github.com/users/mjuhoor/following{/other_user}","gists_url":"https://api.github.com/users/mjuhoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mjuhoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjuhoor/subscriptions","organizations_url":"https://api.github.com/users/mjuhoor/orgs","repos_url":"https://api.github.com/users/mjuhoor/repos","events_url":"https://api.github.com/users/mjuhoor/events{/privacy}","received_events_url":"https://api.github.com/users/mjuhoor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-29T10:01:21Z","updated_at":"2017-03-29T12:20:21Z","closed_at":null,"body":"How to reproduce:\r\n1 - Create any new data\r\n2 - Right-click on data, choose \"Edit\"\r\n3 - Change  or do not change anything, Click 'Ok'. (Please note the empty string for 'Thumbnail Path')\r\n4 - Right-click on data, Save\r\n5 - '?' as thumbnail for the saved data\r\n\r\nThis might be caused by:\r\nonEditRequested(void)  in src/medCore/gui/database/medDatabaseView.cpp::544\r\n\r\n        if(res == QDialog::Accepted)\r\n        {\r\n            int i=0;\r\n            foreach(QString label, labels)\r\n            {\r\n                QVariant data = editDialog.value(label);\r\n                QVariant variant = item->attribute(i);\r\n                medDataManager::instance()->setMetadata(index, variant.toString(), data.toString());\r\n                i++;    \r\n            }   \r\n        }   \r\n\r\nThe 'Thumbnail Path' might be replaced by empty string, explaining the '?'\r\n"},"comment":{"url":"https://api.github.com/repos/Inria-Asclepios/medInria-public/issues/comments/290072551","html_url":"https://github.com/Inria-Asclepios/medInria-public/issues/237#issuecomment-290072551","issue_url":"https://api.github.com/repos/Inria-Asclepios/medInria-public/issues/237","id":290072551,"user":{"login":"LoicCadour","id":3705584,"avatar_url":"https://avatars2.githubusercontent.com/u/3705584?v=3","gravatar_id":"","url":"https://api.github.com/users/LoicCadour","html_url":"https://github.com/LoicCadour","followers_url":"https://api.github.com/users/LoicCadour/followers","following_url":"https://api.github.com/users/LoicCadour/following{/other_user}","gists_url":"https://api.github.com/users/LoicCadour/gists{/gist_id}","starred_url":"https://api.github.com/users/LoicCadour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoicCadour/subscriptions","organizations_url":"https://api.github.com/users/LoicCadour/orgs","repos_url":"https://api.github.com/users/LoicCadour/repos","events_url":"https://api.github.com/users/LoicCadour/events{/privacy}","received_events_url":"https://api.github.com/users/LoicCadour/received_events","type":"User","site_admin":false},"created_at":"2017-03-29T12:20:21Z","updated_at":"2017-03-29T12:20:21Z","body":"I agree to prevent users from changing the thumbnail path."}}
{"actor":{"display_login":"LoicCadour"}}