{"action":"closed","issue":{"url":"https://api.github.com/repos/vdm-io/Joomla-Component-Builder/issues/95","repository_url":"https://api.github.com/repos/vdm-io/Joomla-Component-Builder","labels_url":"https://api.github.com/repos/vdm-io/Joomla-Component-Builder/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/vdm-io/Joomla-Component-Builder/issues/95/comments","events_url":"https://api.github.com/repos/vdm-io/Joomla-Component-Builder/issues/95/events","html_url":"https://github.com/vdm-io/Joomla-Component-Builder/issues/95","id":232903363,"number":95,"title":"Custom field php code","user":{"login":"JohnnyMcWeed","id":9844452,"avatar_url":"https://avatars3.githubusercontent.com/u/9844452?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyMcWeed","html_url":"https://github.com/JohnnyMcWeed","followers_url":"https://api.github.com/users/JohnnyMcWeed/followers","following_url":"https://api.github.com/users/JohnnyMcWeed/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyMcWeed/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyMcWeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyMcWeed/subscriptions","organizations_url":"https://api.github.com/users/JohnnyMcWeed/orgs","repos_url":"https://api.github.com/users/JohnnyMcWeed/repos","events_url":"https://api.github.com/users/JohnnyMcWeed/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyMcWeed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-01T14:44:14Z","updated_at":"2017-06-16T12:48:29Z","closed_at":"2017-06-16T12:48:29Z","body":"Could somebody tell me, when/where the php code in custom fields is being used by the compiler? Because at the moment I don't know why my field is not behaving as expected by me. Moreover I couldn't find anything in [07 Advanced Fields](https://www.youtube.com/watch?v=VpzYbifqv0M&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=7)\r\n\r\n- Take the `Sermon Preacher` field\r\n- Change the php line `$query->where($db->quoteName('a.published') . ' = 1');` to `$query->where($db->quoteName('a.published') . ' = 5');`\r\n- Re-install component \r\n\r\nMy expected behaviour:\r\nEven if I have got any preachers, I should not be able to see them when creating a sermon, as their published state is not 5.\r\n\r\nResult:\r\nIt still uses `$db->quoteName('a.published') . ' = 1'`"}}
{"actor":{"display_login":"Llewellynvdm"}}