{"action":"created","issue":{"url":"https://api.github.com/repos/laclasse-com/service-admin-panel/issues/53","repository_url":"https://api.github.com/repos/laclasse-com/service-admin-panel","labels_url":"https://api.github.com/repos/laclasse-com/service-admin-panel/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/laclasse-com/service-admin-panel/issues/53/comments","events_url":"https://api.github.com/repos/laclasse-com/service-admin-panel/issues/53/events","html_url":"https://github.com/laclasse-com/service-admin-panel/issues/53","id":145126661,"number":53,"title":"Gestion utilisateurs - Statut des boutons d'action","user":{"login":"HuguesGithub","id":17729362,"avatar_url":"https://avatars.githubusercontent.com/u/17729362?v=3","gravatar_id":"","url":"https://api.github.com/users/HuguesGithub","html_url":"https://github.com/HuguesGithub","followers_url":"https://api.github.com/users/HuguesGithub/followers","following_url":"https://api.github.com/users/HuguesGithub/following{/other_user}","gists_url":"https://api.github.com/users/HuguesGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/HuguesGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuguesGithub/subscriptions","organizations_url":"https://api.github.com/users/HuguesGithub/orgs","repos_url":"https://api.github.com/users/HuguesGithub/repos","events_url":"https://api.github.com/users/HuguesGithub/events{/privacy}","received_events_url":"https://api.github.com/users/HuguesGithub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laclasse-com/service-admin-panel/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/laclasse-com/service-admin-panel/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"HuguesGithub","id":17729362,"avatar_url":"https://avatars.githubusercontent.com/u/17729362?v=3","gravatar_id":"","url":"https://api.github.com/users/HuguesGithub","html_url":"https://github.com/HuguesGithub","followers_url":"https://api.github.com/users/HuguesGithub/followers","following_url":"https://api.github.com/users/HuguesGithub/following{/other_user}","gists_url":"https://api.github.com/users/HuguesGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/HuguesGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuguesGithub/subscriptions","organizations_url":"https://api.github.com/users/HuguesGithub/orgs","repos_url":"https://api.github.com/users/HuguesGithub/repos","events_url":"https://api.github.com/users/HuguesGithub/events{/privacy}","received_events_url":"https://api.github.com/users/HuguesGithub/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-01T09:00:43Z","updated_at":"2016-04-06T13:13:14Z","closed_at":null,"body":"Connecté en tant que chef d'établissement.\n\nLe bouton \"Fusionner les comptes\" ne réagit pas de la même façon que les autres à la sélection : il lui manque l'attribut ng-disabled et le test qui va avec (tester une longueur 2 pour le rendre actif ?)\n\nLa sélection d'un utilisateur rend actif le bouton \"Annuler la sélection\" (parmi d'autres). Mais la déselection de cet utilisateur ne rend pas le bouton grisé : le disabled du bouton se base sur la longueur de $scope.checked\nQuand on sélectionne un utilisateur, on ajoute à $scope.checked la référence à l'id de l'utilisateur et on lui affecte true. Quand on déselectionne on conserve la référence à l'id de l'utilisateur et on lui affecte false. $scope.checked ne perd pas d'éléments. Il faudrait soit supprimer l'élément de $scope.checked, soit tester la longueur de $scope.checked uniquement pour les entrées \"true\".\n\nPar ailleurs, le problème est aussi rencontré quand on tente de Fusionner deux comptes après avoir sélectionné puis désélectionné un troisième compte. Bien que seulement 2 utilisateurs soient cochés, on a le message d'erreur qui demande à ce que seulement 2 utilisateurs soient cochés. En effet, la liste $scope.checked comporte 3 éléments, deux à true et un à false."},"comment":{"url":"https://api.github.com/repos/laclasse-com/service-admin-panel/issues/comments/206363401","html_url":"https://github.com/laclasse-com/service-admin-panel/issues/53#issuecomment-206363401","issue_url":"https://api.github.com/repos/laclasse-com/service-admin-panel/issues/53","id":206363401,"user":{"login":"HuguesGithub","id":17729362,"avatar_url":"https://avatars.githubusercontent.com/u/17729362?v=3","gravatar_id":"","url":"https://api.github.com/users/HuguesGithub","html_url":"https://github.com/HuguesGithub","followers_url":"https://api.github.com/users/HuguesGithub/followers","following_url":"https://api.github.com/users/HuguesGithub/following{/other_user}","gists_url":"https://api.github.com/users/HuguesGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/HuguesGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuguesGithub/subscriptions","organizations_url":"https://api.github.com/users/HuguesGithub/orgs","repos_url":"https://api.github.com/users/HuguesGithub/repos","events_url":"https://api.github.com/users/HuguesGithub/events{/privacy}","received_events_url":"https://api.github.com/users/HuguesGithub/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T13:13:13Z","updated_at":"2016-04-06T13:13:13Z","body":"Le problème est corrigé et sera disponible dans le prochain merge.\nLa gestion de sélection des cases à cocher n'a pas été modifiée. Seule la façon de décompter les éléments de la liste a été modifiée."}}