{"action":"created","issue":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/195","labels_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/195/comments","events_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/195/events","html_url":"https://github.com/salesagility/SuiteCRM/issues/195","id":66631337,"number":195,"title":"Workflow any change fails on audited fields","user":{"login":"mattlorimer","id":6449723,"avatar_url":"https://avatars.githubusercontent.com/u/6449723?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlorimer","html_url":"https://github.com/mattlorimer","followers_url":"https://api.github.com/users/mattlorimer/followers","following_url":"https://api.github.com/users/mattlorimer/following{/other_user}","gists_url":"https://api.github.com/users/mattlorimer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlorimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlorimer/subscriptions","organizations_url":"https://api.github.com/users/mattlorimer/orgs","repos_url":"https://api.github.com/users/mattlorimer/repos","events_url":"https://api.github.com/users/mattlorimer/events{/privacy}","received_events_url":"https://api.github.com/users/mattlorimer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/salesagility/SuiteCRM/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T15:31:24Z","updated_at":"2015-10-13T19:36:18Z","closed_at":null,"body":"if you run an a workflow with 'Any Change', if will not fire if the field is audited"},"comment":{"url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/comments/147825847","html_url":"https://github.com/salesagility/SuiteCRM/issues/195#issuecomment-147825847","issue_url":"https://api.github.com/repos/salesagility/SuiteCRM/issues/195","id":147825847,"user":{"login":"adriangibanelbtactic","id":1331363,"avatar_url":"https://avatars.githubusercontent.com/u/1331363?v=3","gravatar_id":"","url":"https://api.github.com/users/adriangibanelbtactic","html_url":"https://github.com/adriangibanelbtactic","followers_url":"https://api.github.com/users/adriangibanelbtactic/followers","following_url":"https://api.github.com/users/adriangibanelbtactic/following{/other_user}","gists_url":"https://api.github.com/users/adriangibanelbtactic/gists{/gist_id}","starred_url":"https://api.github.com/users/adriangibanelbtactic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriangibanelbtactic/subscriptions","organizations_url":"https://api.github.com/users/adriangibanelbtactic/orgs","repos_url":"https://api.github.com/users/adriangibanelbtactic/repos","events_url":"https://api.github.com/users/adriangibanelbtactic/events{/privacy}","received_events_url":"https://api.github.com/users/adriangibanelbtactic/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T19:36:17Z","updated_at":"2015-10-13T19:36:17Z","body":"Hopefully this helps someone else to solve the problem.\r\n\r\nI have been tracking the problem and it seems that the main $bean for the workflow it's not getting the old value in its fetched_row array but new one.\r\n\r\nWhy? Because the audit code it's probably saving the new value in the database just before handing the program to the logic hooks (where AOW_Workflow is run).\r\n\r\nI ask myself if a new feature about being able to run the workflow before and / or after the saving of the bean (which I think I have seen in some suitecrm betas) could workaround it."}}