{"action":"created","issue":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/2930","repository_url":"https://api.github.com/repos/salesagility/SuiteCRM","labels_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/2930/labels{/name}","comments_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/2930/comments","events_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/2930/events","html_url":"https://github.com/salesagility/SuiteCRM/pull/2930","id":201271003,"node_id":"MDExOlB1bGxSZXF1ZXN0MTAxODU2NzEy","number":2930,"title":"Fixed #707 - added conditional statement to check if action is not clone","user":{"login":"vladbar","id":13965636,"node_id":"MDQ6VXNlcjEzOTY1NjM2","avatar_url":"https://avatars2.githubusercontent.com/u/13965636?v=4","gravatar_id":"","url":"https://api.github.com/users/vladbar","html_url":"https://github.com/vladbar","followers_url":"https://api.github.com/users/vladbar/followers","following_url":"https://api.github.com/users/vladbar/following{/other_user}","gists_url":"https://api.github.com/users/vladbar/gists{/gist_id}","starred_url":"https://api.github.com/users/vladbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladbar/subscriptions","organizations_url":"https://api.github.com/users/vladbar/orgs","repos_url":"https://api.github.com/users/vladbar/repos","events_url":"https://api.github.com/users/vladbar/events{/privacy}","received_events_url":"https://api.github.com/users/vladbar/received_events","type":"User","site_admin":false},"labels":[{"id":488084356,"node_id":"MDU6TGFiZWw0ODgwODQzNTY=","url":"https://api.github.com/repos/salesagility/SuiteCRM/labels/Assessed","name":"Assessed","color":"d4c5f9","default":false},{"id":481219441,"node_id":"MDU6TGFiZWw0ODEyMTk0NDE=","url":"https://api.github.com/repos/salesagility/SuiteCRM/labels/In%20Review","name":"In Review","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-17T12:47:02Z","updated_at":"2018-12-18T17:00:37Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/pulls/2930","html_url":"https://github.com/salesagility/SuiteCRM/pull/2930","diff_url":"https://github.com/salesagility/SuiteCRM/pull/2930.diff","patch_url":"https://github.com/salesagility/SuiteCRM/pull/2930.patch"},"body":"## Description\r\nreferences issue #707\r\n\r\nAdded a conditional statement inside submitForm function in order to prevent it from redirecting the user before the clone action has actually happened.\r\nThe statement checks if that the action is not a clone.\r\n\r\n## Motivation and Context\r\nThis fix is required in order to fix Studio -> Clone field functionality. \r\n\r\nAt present when Clone button is pressed inside Edit Field tab, it brings a floating div with the message:\r\n\"This operation is completed successfully\"\r\nBut instead, it closes the Edit Field tab and then returns to Edit Fields tab\r\nWhen you pressed the X on the floating div, it closes doing nothing.\r\n\r\n## How To Test This\r\n1. Navigate to Studio -> any module -> Fields -> any field.\r\n2. click Clone\r\n3. The following message - \"This operation is completed successfully\" will be presented.\r\n4. Then  the Edit Field tab is closed and no cloning operation is performed\r\n\r\n## Types of changes\r\n- [ ] Bug fix (non-breaking change which fixes an issue)"},"comment":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/comments/448293106","html_url":"https://github.com/salesagility/SuiteCRM/pull/2930#issuecomment-448293106","issue_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/2930","id":448293106,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODI5MzEwNg==","user":{"login":"pribeiro42","id":5657365,"node_id":"MDQ6VXNlcjU2NTczNjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5657365?v=4","gravatar_id":"","url":"https://api.github.com/users/pribeiro42","html_url":"https://github.com/pribeiro42","followers_url":"https://api.github.com/users/pribeiro42/followers","following_url":"https://api.github.com/users/pribeiro42/following{/other_user}","gists_url":"https://api.github.com/users/pribeiro42/gists{/gist_id}","starred_url":"https://api.github.com/users/pribeiro42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pribeiro42/subscriptions","organizations_url":"https://api.github.com/users/pribeiro42/orgs","repos_url":"https://api.github.com/users/pribeiro42/repos","events_url":"https://api.github.com/users/pribeiro42/events{/privacy}","received_events_url":"https://api.github.com/users/pribeiro42/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T17:00:37Z","updated_at":"2018-12-18T17:00:37Z","author_association":"CONTRIBUTOR","body":"Assessed. Working."}}
{"actor":{"display_login":"pribeiro42"}}