{"action":"created","issue":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/4779","repository_url":"https://api.github.com/repos/glpi-project/glpi","labels_url":"https://api.github.com/repos/glpi-project/glpi/issues/4779/labels{/name}","comments_url":"https://api.github.com/repos/glpi-project/glpi/issues/4779/comments","events_url":"https://api.github.com/repos/glpi-project/glpi/issues/4779/events","html_url":"https://github.com/glpi-project/glpi/pull/4779","id":369552262,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNDY3MDA5","number":4779,"title":"Select2 formatSelection and formatResult are deprecated.","user":{"login":"trasher","id":224733,"node_id":"MDQ6VXNlcjIyNDczMw==","avatar_url":"https://avatars2.githubusercontent.com/u/224733?v=4","gravatar_id":"","url":"https://api.github.com/users/trasher","html_url":"https://github.com/trasher","followers_url":"https://api.github.com/users/trasher/followers","following_url":"https://api.github.com/users/trasher/following{/other_user}","gists_url":"https://api.github.com/users/trasher/gists{/gist_id}","starred_url":"https://api.github.com/users/trasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trasher/subscriptions","organizations_url":"https://api.github.com/users/trasher/orgs","repos_url":"https://api.github.com/users/trasher/repos","events_url":"https://api.github.com/users/trasher/events{/privacy}","received_events_url":"https://api.github.com/users/trasher/received_events","type":"User","site_admin":false},"labels":[{"id":454752806,"node_id":"MDU6TGFiZWw0NTQ3NTI4MDY=","url":"https://api.github.com/repos/glpi-project/glpi/labels/need_cherrypick","name":"need_cherrypick","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T13:29:53Z","updated_at":"2018-10-12T14:58:53Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/glpi-project/glpi/pulls/4779","html_url":"https://github.com/glpi-project/glpi/pull/4779","diff_url":"https://github.com/glpi-project/glpi/pull/4779.diff","patch_url":"https://github.com/glpi-project/glpi/pull/4779.patch"},"body":"Rename old JS function, add some ondomloaded.\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes"},"comment":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/comments/429355290","html_url":"https://github.com/glpi-project/glpi/pull/4779#issuecomment-429355290","issue_url":"https://api.github.com/repos/glpi-project/glpi/issues/4779","id":429355290,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTM1NTI5MA==","user":{"login":"cedric-anne","id":33253653,"node_id":"MDQ6VXNlcjMzMjUzNjUz","avatar_url":"https://avatars1.githubusercontent.com/u/33253653?v=4","gravatar_id":"","url":"https://api.github.com/users/cedric-anne","html_url":"https://github.com/cedric-anne","followers_url":"https://api.github.com/users/cedric-anne/followers","following_url":"https://api.github.com/users/cedric-anne/following{/other_user}","gists_url":"https://api.github.com/users/cedric-anne/gists{/gist_id}","starred_url":"https://api.github.com/users/cedric-anne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedric-anne/subscriptions","organizations_url":"https://api.github.com/users/cedric-anne/orgs","repos_url":"https://api.github.com/users/cedric-anne/repos","events_url":"https://api.github.com/users/cedric-anne/events{/privacy}","received_events_url":"https://api.github.com/users/cedric-anne/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T14:58:53Z","updated_at":"2018-10-12T14:58:53Z","author_association":"CONTRIBUTOR","body":"`formatResult` method is used, at least, in escalade and in itilcategorygroups plugins. Should we keep an alias in GLPI core or should be handle this in plugins ?\r\n\r\nTo make plugins compatible with versions prior to this change, we could use the new `templateResult` function and add this kind of code :\r\n```javascript\r\nif (typeof templateResult === \"undefined\" && typeof formatResult !== \"undefined\") {\r\n   templateResult = formatResult;\r\n}\r\n```"}}
{"actor":{"display_login":"cedric-anne"}}