{"action":"created","issue":{"url":"https://api.github.com/repos/pimcore/pimcore/issues/773","repository_url":"https://api.github.com/repos/pimcore/pimcore","labels_url":"https://api.github.com/repos/pimcore/pimcore/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/pimcore/pimcore/issues/773/comments","events_url":"https://api.github.com/repos/pimcore/pimcore/issues/773/events","html_url":"https://github.com/pimcore/pimcore/issues/773","id":167846268,"number":773,"title":"WorkFlowManager : Data Lost while making Action on Object","user":{"login":"tarun-singhal","id":7371453,"avatar_url":"https://avatars.githubusercontent.com/u/7371453?v=3","gravatar_id":"","url":"https://api.github.com/users/tarun-singhal","html_url":"https://github.com/tarun-singhal","followers_url":"https://api.github.com/users/tarun-singhal/followers","following_url":"https://api.github.com/users/tarun-singhal/following{/other_user}","gists_url":"https://api.github.com/users/tarun-singhal/gists{/gist_id}","starred_url":"https://api.github.com/users/tarun-singhal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarun-singhal/subscriptions","organizations_url":"https://api.github.com/users/tarun-singhal/orgs","repos_url":"https://api.github.com/users/tarun-singhal/repos","events_url":"https://api.github.com/users/tarun-singhal/events{/privacy}","received_events_url":"https://api.github.com/users/tarun-singhal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pimcore/pimcore/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"mrudnicki","id":20395719,"avatar_url":"https://avatars.githubusercontent.com/u/20395719?v=3","gravatar_id":"","url":"https://api.github.com/users/mrudnicki","html_url":"https://github.com/mrudnicki","followers_url":"https://api.github.com/users/mrudnicki/followers","following_url":"https://api.github.com/users/mrudnicki/following{/other_user}","gists_url":"https://api.github.com/users/mrudnicki/gists{/gist_id}","starred_url":"https://api.github.com/users/mrudnicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrudnicki/subscriptions","organizations_url":"https://api.github.com/users/mrudnicki/orgs","repos_url":"https://api.github.com/users/mrudnicki/repos","events_url":"https://api.github.com/users/mrudnicki/events{/privacy}","received_events_url":"https://api.github.com/users/mrudnicki/received_events","type":"User","site_admin":false},"assignees":[{"login":"mrudnicki","id":20395719,"avatar_url":"https://avatars.githubusercontent.com/u/20395719?v=3","gravatar_id":"","url":"https://api.github.com/users/mrudnicki","html_url":"https://github.com/mrudnicki","followers_url":"https://api.github.com/users/mrudnicki/followers","following_url":"https://api.github.com/users/mrudnicki/following{/other_user}","gists_url":"https://api.github.com/users/mrudnicki/gists{/gist_id}","starred_url":"https://api.github.com/users/mrudnicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrudnicki/subscriptions","organizations_url":"https://api.github.com/users/mrudnicki/orgs","repos_url":"https://api.github.com/users/mrudnicki/repos","events_url":"https://api.github.com/users/mrudnicki/events{/privacy}","received_events_url":"https://api.github.com/users/mrudnicki/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-27T12:53:27Z","updated_at":"2016-08-03T13:18:16Z","closed_at":null,"body":"### Expected behavior \r\nIt should persist the new value in Object.\r\n\r\n### Actual behavior  \r\nYou will see saved data lost from object and it create new version with previous filled values.\r\n\r\n### Steps to reproduce  \r\n\r\n1. Create User who has create object rights not Publish rights\r\n2. Login with that user.\r\n3. Open the object and fill some information there.\r\n4. Save the object not publish.  \r\n5. Perform Work-flow Action like Start progress/Ready to review etc..\r\n### Code example of \"pimcore/lib/Pimcore/WorkflowManagement/Workflow/Manager.php\"\r\n```php\r\n           $this->element->setUserModification($this->user->getId());\r\n            if (($task === \"publish\" && $this->element->isAllowed(\"publish\")) || ($task === \"unpublish\" && $this->element->isAllowed(\"unpublish\"))) {\r\n                $this->element->save();\r\n            } elseif ($this->element instanceof Concrete || $this->element instanceof Document\\PageSnippet) {\r\n                //Below code making issue on saved version : ISSUE LN#569\r\n                $this->element->saveVersion();\r\n            } else {\r\n                throw new \\Exception(\"Operation not allowed for this element\");\r\n            }\r\n```\r\nIf i comment the Issue line then i am able to get the expected results. But still need to identify is there any other impacts of it. "},"comment":{"url":"https://api.github.com/repos/pimcore/pimcore/issues/comments/237234350","html_url":"https://github.com/pimcore/pimcore/issues/773#issuecomment-237234350","issue_url":"https://api.github.com/repos/pimcore/pimcore/issues/773","id":237234350,"user":{"login":"fashxp","id":8792145,"avatar_url":"https://avatars.githubusercontent.com/u/8792145?v=3","gravatar_id":"","url":"https://api.github.com/users/fashxp","html_url":"https://github.com/fashxp","followers_url":"https://api.github.com/users/fashxp/followers","following_url":"https://api.github.com/users/fashxp/following{/other_user}","gists_url":"https://api.github.com/users/fashxp/gists{/gist_id}","starred_url":"https://api.github.com/users/fashxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashxp/subscriptions","organizations_url":"https://api.github.com/users/fashxp/orgs","repos_url":"https://api.github.com/users/fashxp/repos","events_url":"https://api.github.com/users/fashxp/events{/privacy}","received_events_url":"https://api.github.com/users/fashxp/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T13:18:16Z","updated_at":"2016-08-03T13:18:16Z","body":"hi guys, actually I'm not sure anymore why I commented this line. I guess it was because of an error in reasoning on my side. so @mrudnicki please just include this line again and check what happens. \r\nthank you very much!"}}
{"actor":{"display_login":"fashxp"}}