{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4374","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4374/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4374/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4374/events","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/4374","id":93377624,"number":4374,"title":"Enable *_Readonly subclass on FormField","user":{"login":"ntd","id":160618,"avatar_url":"https://avatars.githubusercontent.com/u/160618?v=3","gravatar_id":"","url":"https://api.github.com/users/ntd","html_url":"https://github.com/ntd","followers_url":"https://api.github.com/users/ntd/followers","following_url":"https://api.github.com/users/ntd/following{/other_user}","gists_url":"https://api.github.com/users/ntd/gists{/gist_id}","starred_url":"https://api.github.com/users/ntd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntd/subscriptions","organizations_url":"https://api.github.com/users/ntd/orgs","repos_url":"https://api.github.com/users/ntd/repos","events_url":"https://api.github.com/users/ntd/events{/privacy}","received_events_url":"https://api.github.com/users/ntd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T21:06:36Z","updated_at":"2015-08-03T12:20:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/pulls/4374","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/4374","diff_url":"https://github.com/silverstripe/silverstripe-framework/pull/4374.diff","patch_url":"https://github.com/silverstripe/silverstripe-framework/pull/4374.patch"},"body":"When rendering read-only fields only the *_Disabled subclass was checked\r\nfor in FormField::performReadOnlyTransformation().\r\n\r\nAdded a *_Readonly check and kept the *_Disabled check for backward\r\ncompatibility.\r\n\r\nCleaned up all subclasses by using removing bogus overrides and using\r\nparent::performReadOnlyTransformation() instead of\r\ncastedCopy('*_Readonly')."},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/127216336","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/4374#issuecomment-127216336","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4374","id":127216336,"user":{"login":"ntd","id":160618,"avatar_url":"https://avatars.githubusercontent.com/u/160618?v=3","gravatar_id":"","url":"https://api.github.com/users/ntd","html_url":"https://github.com/ntd","followers_url":"https://api.github.com/users/ntd/followers","following_url":"https://api.github.com/users/ntd/following{/other_user}","gists_url":"https://api.github.com/users/ntd/gists{/gist_id}","starred_url":"https://api.github.com/users/ntd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntd/subscriptions","organizations_url":"https://api.github.com/users/ntd/orgs","repos_url":"https://api.github.com/users/ntd/repos","events_url":"https://api.github.com/users/ntd/events{/privacy}","received_events_url":"https://api.github.com/users/ntd/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T12:20:40Z","updated_at":"2015-08-03T12:20:40Z","body":"@kinglozzer Yes, this can be done quite easily. I just pushed a commit that uses a dedicated field class."}}