{"action":"created","issue":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/401","repository_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire","labels_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/401/comments","events_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/401/events","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/401","id":29332799,"number":401,"title":"Cannot change user language","user":{"login":"rlanvin","id":1701590,"avatar_url":"https://avatars.githubusercontent.com/u/1701590?v=3","gravatar_id":"","url":"https://api.github.com/users/rlanvin","html_url":"https://github.com/rlanvin","followers_url":"https://api.github.com/users/rlanvin/followers","following_url":"https://api.github.com/users/rlanvin/following{/other_user}","gists_url":"https://api.github.com/users/rlanvin/gists{/gist_id}","starred_url":"https://api.github.com/users/rlanvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlanvin/subscriptions","organizations_url":"https://api.github.com/users/rlanvin/orgs","repos_url":"https://api.github.com/users/rlanvin/repos","events_url":"https://api.github.com/users/rlanvin/events{/privacy}","received_events_url":"https://api.github.com/users/rlanvin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/labels/Conversation","name":"Conversation","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2014-03-13T08:26:08Z","updated_at":"2016-10-01T07:48:27Z","closed_at":null,"body":"I have a strange behavior when trying to change user language directly from the code. The language is changed for the current page, but not saved (i.e. when I refresh the page, the language is back to \"default\").\r\n\r\nCode example:\r\n```\r\nvar_dump($user->language->name); // 'default'\r\n$user->language = 'fi';\r\n$user->save();\r\nvar_dump($user->language->name); // 'fi'\r\n\r\nvar_dump(wire('users')->get($user->id)->language->name); // still 'default'\r\n// I can also check database or admin panel, the language is \"default\"\r\n```\r\n\r\nI'm using Processwire 2.4.0. The same code use to work fine with the previous version of Processwire. Is this a bug or is there a new way to set the language?"},"comment":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/comments/250898866","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/401#issuecomment-250898866","issue_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/401","id":250898866,"user":{"login":"rlanvin","id":1701590,"avatar_url":"https://avatars.githubusercontent.com/u/1701590?v=3","gravatar_id":"","url":"https://api.github.com/users/rlanvin","html_url":"https://github.com/rlanvin","followers_url":"https://api.github.com/users/rlanvin/followers","following_url":"https://api.github.com/users/rlanvin/following{/other_user}","gists_url":"https://api.github.com/users/rlanvin/gists{/gist_id}","starred_url":"https://api.github.com/users/rlanvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlanvin/subscriptions","organizations_url":"https://api.github.com/users/rlanvin/orgs","repos_url":"https://api.github.com/users/rlanvin/repos","events_url":"https://api.github.com/users/rlanvin/events{/privacy}","received_events_url":"https://api.github.com/users/rlanvin/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T07:48:27Z","updated_at":"2016-10-01T07:48:27Z","body":"@isellsoap I don't know, I'm not using ProcessWire anymore."}}
{"actor":{"display_login":"rlanvin"}}