{"action":"opened","issue":{"url":"https://api.github.com/repos/intelliants/subrion/issues/790","repository_url":"https://api.github.com/repos/intelliants/subrion","labels_url":"https://api.github.com/repos/intelliants/subrion/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/intelliants/subrion/issues/790/comments","events_url":"https://api.github.com/repos/intelliants/subrion/issues/790/events","html_url":"https://github.com/intelliants/subrion/issues/790","id":355435112,"node_id":"MDU6SXNzdWUzNTU0MzUxMTI=","number":790,"title":"hook phpParsePostAfterCheckField not working for multilingual fields","user":{"login":"sashagar","id":13992012,"node_id":"MDQ6VXNlcjEzOTkyMDEy","avatar_url":"https://avatars3.githubusercontent.com/u/13992012?v=4","gravatar_id":"","url":"https://api.github.com/users/sashagar","html_url":"https://github.com/sashagar","followers_url":"https://api.github.com/users/sashagar/followers","following_url":"https://api.github.com/users/sashagar/following{/other_user}","gists_url":"https://api.github.com/users/sashagar/gists{/gist_id}","starred_url":"https://api.github.com/users/sashagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashagar/subscriptions","organizations_url":"https://api.github.com/users/sashagar/orgs","repos_url":"https://api.github.com/users/sashagar/repos","events_url":"https://api.github.com/users/sashagar/events{/privacy}","received_events_url":"https://api.github.com/users/sashagar/received_events","type":"User","site_admin":false},"labels":[{"id":26523634,"node_id":"MDU6TGFiZWwyNjUyMzYzNA==","url":"https://api.github.com/repos/intelliants/subrion/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"4unkur","id":7892851,"node_id":"MDQ6VXNlcjc4OTI4NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7892851?v=4","gravatar_id":"","url":"https://api.github.com/users/4unkur","html_url":"https://github.com/4unkur","followers_url":"https://api.github.com/users/4unkur/followers","following_url":"https://api.github.com/users/4unkur/following{/other_user}","gists_url":"https://api.github.com/users/4unkur/gists{/gist_id}","starred_url":"https://api.github.com/users/4unkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4unkur/subscriptions","organizations_url":"https://api.github.com/users/4unkur/orgs","repos_url":"https://api.github.com/users/4unkur/repos","events_url":"https://api.github.com/users/4unkur/events{/privacy}","received_events_url":"https://api.github.com/users/4unkur/received_events","type":"User","site_admin":false},"assignees":[{"login":"4unkur","id":7892851,"node_id":"MDQ6VXNlcjc4OTI4NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7892851?v=4","gravatar_id":"","url":"https://api.github.com/users/4unkur","html_url":"https://github.com/4unkur","followers_url":"https://api.github.com/users/4unkur/followers","following_url":"https://api.github.com/users/4unkur/following{/other_user}","gists_url":"https://api.github.com/users/4unkur/gists{/gist_id}","starred_url":"https://api.github.com/users/4unkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4unkur/subscriptions","organizations_url":"https://api.github.com/users/4unkur/orgs","repos_url":"https://api.github.com/users/4unkur/repos","events_url":"https://api.github.com/users/4unkur/events{/privacy}","received_events_url":"https://api.github.com/users/4unkur/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-30T05:56:43Z","updated_at":"2018-08-30T05:56:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I've added on custom project following code on front part of the project\r\n```if($field['multilingual']) {\r\n                $langCode = (iaCore::ACCESS_FRONT == $this->iaCore->getAccessType())\r\n                    ? $this->iaView->language\r\n                    : iaLanguage::getMasterLanguage()->code;\r\n                $fieldName .= \"_$langCode\";\r\n            }```\r\nbefore \r\n```if (isset($item[$fieldName])) {\r\n                // process hook if field value exists\r\n                $this->iaCore->startHook('phpParsePostAfterCheckField', [\r\n                    'field' => $field,\r\n                    'value' => $item[$fieldName],\r\n                    'errors' => &$errors\r\n                ]);\r\n            }```\r\nand this hook worked.\r\n\r\nPlease check and fix it!"}}
{"actor":{"display_login":"sashagar"}}