{"action":"created","issue":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1154","repository_url":"https://api.github.com/repos/pencilblue/pencilblue","labels_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1154/labels{/name}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1154/comments","events_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1154/events","html_url":"https://github.com/pencilblue/pencilblue/issues/1154","id":180608759,"number":1154,"title":"Question about error_success code","user":{"login":"webdesus","id":3442315,"avatar_url":"https://avatars.githubusercontent.com/u/3442315?v=3","gravatar_id":"","url":"https://api.github.com/users/webdesus","html_url":"https://github.com/webdesus","followers_url":"https://api.github.com/users/webdesus/followers","following_url":"https://api.github.com/users/webdesus/following{/other_user}","gists_url":"https://api.github.com/users/webdesus/gists{/gist_id}","starred_url":"https://api.github.com/users/webdesus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdesus/subscriptions","organizations_url":"https://api.github.com/users/webdesus/orgs","repos_url":"https://api.github.com/users/webdesus/repos","events_url":"https://api.github.com/users/webdesus/events{/privacy}","received_events_url":"https://api.github.com/users/webdesus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-03T10:33:05Z","updated_at":"2016-10-07T12:39:45Z","closed_at":null,"body":"I understand correctly [this is](https://github.com/pencilblue/pencilblue/blob/master/plugins/pencilblue/templates/admin/elements/error_success.html#L1) misprint. I not found no code which write inside data. And this [file](https://github.com/pencilblue/pencilblue/blob/master/plugins/pencilblue/templates/angular/admin/elements/error_success.html) I should using always in my angular code? Or maybe instead misprint must be link template to this file?"},"comment":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/comments/252241723","html_url":"https://github.com/pencilblue/pencilblue/issues/1154#issuecomment-252241723","issue_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1154","id":252241723,"user":{"login":"brianhyder","id":3628887,"avatar_url":"https://avatars.githubusercontent.com/u/3628887?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhyder","html_url":"https://github.com/brianhyder","followers_url":"https://api.github.com/users/brianhyder/followers","following_url":"https://api.github.com/users/brianhyder/following{/other_user}","gists_url":"https://api.github.com/users/brianhyder/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhyder/subscriptions","organizations_url":"https://api.github.com/users/brianhyder/orgs","repos_url":"https://api.github.com/users/brianhyder/repos","events_url":"https://api.github.com/users/brianhyder/events{/privacy}","received_events_url":"https://api.github.com/users/brianhyder/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T12:39:45Z","updated_at":"2016-10-07T12:39:45Z","body":"Not a typo.  This is an older pattern that we used to inject in the alert boxes that provide \"saved successfully\" or \"failed to save\" messages.  It was used only with traditional form posts so that we could show the same view with the error messages.  We are moving away from traditional form posts and leveraging APIs instead for a consistent feel.  \r\n\r\nAside from that I'll provide a basic explanation of how it worked.  The HTML template would contain ```^error_success^```.  In the BaseController a flag handler was registered with the TemplateService so that when the ```^error_success^``` flag was found it would be replaced with HTML if there was an ```error``` or ```success``` property available in the session object.  "}}
{"actor":{"display_login":"brianhyder"}}