{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/19218","labels_url":"https://api.github.com/repos/owncloud/core/issues/19218/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/19218/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/19218/events","html_url":"https://github.com/owncloud/core/issues/19218","id":107486162,"number":19218,"title":"An error is shown clicking two times on the restore button restoring a file","user":{"login":"davitol","id":10596560,"avatar_url":"https://avatars.githubusercontent.com/u/10596560?v=3","gravatar_id":"","url":"https://api.github.com/users/davitol","html_url":"https://github.com/davitol","followers_url":"https://api.github.com/users/davitol/followers","following_url":"https://api.github.com/users/davitol/following{/other_user}","gists_url":"https://api.github.com/users/davitol/gists{/gist_id}","starred_url":"https://api.github.com/users/davitol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davitol/subscriptions","organizations_url":"https://api.github.com/users/davitol/orgs","repos_url":"https://api.github.com/users/davitol/repos","events_url":"https://api.github.com/users/davitol/events{/privacy}","received_events_url":"https://api.github.com/users/davitol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_versions","name":"app:files_versions","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/feature:sidebar","name":"feature:sidebar","color":"d4c5f9"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev3-medium","name":"sev3-medium","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":116,"closed_issues":1125,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-10-05T08:22:52Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":4,"created_at":"2015-09-21T10:43:06Z","updated_at":"2015-10-05T08:22:52Z","closed_at":"2015-10-05T08:22:52Z","body":"### Steps to reproduce\r\n\r\n1. Create a file, edit and save it\r\n2. Close the file.\r\n3. Edit it and save it again. (A new file version is created)\r\n3. Restore the file\r\n4. Click on the restore button for a second time\r\n\r\n### Expected behaviour\r\nThe file has been already restored, so it should not happen anything \r\n\r\n### Actual behaviour\r\nAn error is thrown. \r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 14.04\r\n\r\n**Web server:**\r\nApache\r\n\r\n**Database:**\r\nMySQL\r\n\r\n**PHP version:**\r\n5.5.9\r\n\r\n**ownCloud version:** ownCloud Enterprise Edition 8.2 beta1 (daily) Build:2015-09-21T03:08:19+00:00 bbd1e996050fee80795d0e656da98b6451232c6c\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nFresh\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n\r\n```\r\n\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nNo\r\n\r\n**Are you using encryption:** \r\nNo\r\n\r\n**Logs**\r\n```\r\n```\r\n### Client configuration\r\n\r\n**browser**\r\nFirefox\r\n\r\n\r\n![restoredfail](https://cloud.githubusercontent.com/assets/10596560/9990066/3e0fc308-605e-11e5-8638-3be3849da067.png)\r\n\r\n"}}