{"action":"opened","issue":{"url":"https://api.github.com/repos/eXist-db/eXide/issues/203","repository_url":"https://api.github.com/repos/eXist-db/eXide","labels_url":"https://api.github.com/repos/eXist-db/eXide/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/eXist-db/eXide/issues/203/comments","events_url":"https://api.github.com/repos/eXist-db/eXide/issues/203/events","html_url":"https://github.com/eXist-db/eXide/issues/203","id":358373406,"node_id":"MDU6SXNzdWUzNTgzNzM0MDY=","number":203,"title":"File Manager does not copy after a cut.","user":{"login":"RemiKoutcherawy","id":993988,"node_id":"MDQ6VXNlcjk5Mzk4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/993988?v=4","gravatar_id":"","url":"https://api.github.com/users/RemiKoutcherawy","html_url":"https://github.com/RemiKoutcherawy","followers_url":"https://api.github.com/users/RemiKoutcherawy/followers","following_url":"https://api.github.com/users/RemiKoutcherawy/following{/other_user}","gists_url":"https://api.github.com/users/RemiKoutcherawy/gists{/gist_id}","starred_url":"https://api.github.com/users/RemiKoutcherawy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemiKoutcherawy/subscriptions","organizations_url":"https://api.github.com/users/RemiKoutcherawy/orgs","repos_url":"https://api.github.com/users/RemiKoutcherawy/repos","events_url":"https://api.github.com/users/RemiKoutcherawy/events{/privacy}","received_events_url":"https://api.github.com/users/RemiKoutcherawy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-09T12:07:30Z","updated_at":"2018-09-09T12:07:30Z","closed_at":null,"author_association":"NONE","body":"After a Cut, File / Manage does not copy/paste but always cut/move\r\nThe button Copy works but when you paste a resource somewhere, it disappears from the original location.\r\n\r\nTo reproduce open File / Manage :\r\n1/ Select a resource click on Cut\r\n2/ Select a resource click on Copy\r\n3/ Move to another collection then Paste\r\n4/ Back to original collection, selected resource has disappeared, moved instead of copied.\r\n\r\nThe culprit is there\r\nhttps://github.com/eXist-db/eXide/blob/c9739ffe63f973fbd95adff9d2b784afa7651caf/src/resources.js#L512\r\n\r\nA cut sets  this.clipboardMode = \"move\"; then calls copy()\r\nBut when doing a Copy after a Cut, copy() never sets this.clipboardMode = \"copy\"; and performs \"move\"\".\r\nYou cannot just add this.clipboardMode = \"copy\"; in copy() as it will break cut().\r\n\r\nRelated to https://github.com/eXist-db/eXide/issues/125\r\n\r\nHere is a pull request https://github.com/eXist-db/eXide/pull/202\r\n\r\nRémi"}}
{"actor":{"display_login":"RemiKoutcherawy"}}