{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/ng-admin/issues/901","repository_url":"https://api.github.com/repos/marmelab/ng-admin","labels_url":"https://api.github.com/repos/marmelab/ng-admin/issues/901/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/ng-admin/issues/901/comments","events_url":"https://api.github.com/repos/marmelab/ng-admin/issues/901/events","html_url":"https://github.com/marmelab/ng-admin/issues/901","id":127527942,"number":901,"title":"Error on show view vs. edit view","user":{"login":"jamespsterling","id":6403652,"avatar_url":"https://avatars.githubusercontent.com/u/6403652?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespsterling","html_url":"https://github.com/jamespsterling","followers_url":"https://api.github.com/users/jamespsterling/followers","following_url":"https://api.github.com/users/jamespsterling/following{/other_user}","gists_url":"https://api.github.com/users/jamespsterling/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespsterling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespsterling/subscriptions","organizations_url":"https://api.github.com/users/jamespsterling/orgs","repos_url":"https://api.github.com/users/jamespsterling/repos","events_url":"https://api.github.com/users/jamespsterling/events{/privacy}","received_events_url":"https://api.github.com/users/jamespsterling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-01-19T20:10:27Z","updated_at":"2016-08-29T16:30:32Z","closed_at":"2016-03-03T07:33:01Z","body":"I'm getting an error with the following field on 'show view' only. Works just fine in 'edit view'. Any idea what I'm doing wrong?\r\n\r\n```\r\nTypeError: Cannot read property 'updated_date' of undefined\r\n    at p.n.getInput (maField.js:25)\r\n    at p.n.fieldHasValidation (maField.js:36)\r\n    at p.n.getFieldValidationClass (maField.js:46)\r\n    at Object.get (angular.js:12474)\r\n    at p.$digest (angular.js:14404)\r\n    at angular.js:14609\r\n    at o (angular.js:4940)\r\n    at angular.js:5328\r\n```\r\n\r\n```\r\n    user.editionView()\r\n        .title('Edit User')\r\n        .fields(\r\n        nga.field('updated_date', 'datetime')\r\n            .label('Updated Date')\r\n            .format('medium')\r\n            .editable(false)\r\n            .template(maFieldTemplate('updated_date'), true),\r\n            user.creationView().fields()\r\n        );\r\n\r\n    user.showView()\r\n        .title('User')\r\n        .fields(user.editionView().fields());\r\n```\r\n\r\n```\r\nfunction maFieldTemplate(value)\r\n{\r\n    return '<ma-field ng-if=\"entry.values.' + value +\r\n            ' !== undefined && entry.values.' + value +\r\n            ' !== null && entry.values.' + value +\r\n            ' !== \\'0\\'\" field=\"::field\" value=\"entry.values[field.name()]\" entry=\"entry\" entity=\"::entity\" form=\"formController.form\" datastore=\"::formController.dataStore\"></ma-field>';\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/marmelab/ng-admin/issues/comments/243176774","html_url":"https://github.com/marmelab/ng-admin/issues/901#issuecomment-243176774","issue_url":"https://api.github.com/repos/marmelab/ng-admin/issues/901","id":243176774,"user":{"login":"jamespsterling","id":6403652,"avatar_url":"https://avatars.githubusercontent.com/u/6403652?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespsterling","html_url":"https://github.com/jamespsterling","followers_url":"https://api.github.com/users/jamespsterling/followers","following_url":"https://api.github.com/users/jamespsterling/following{/other_user}","gists_url":"https://api.github.com/users/jamespsterling/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespsterling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespsterling/subscriptions","organizations_url":"https://api.github.com/users/jamespsterling/orgs","repos_url":"https://api.github.com/users/jamespsterling/repos","events_url":"https://api.github.com/users/jamespsterling/events{/privacy}","received_events_url":"https://api.github.com/users/jamespsterling/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T16:30:32Z","updated_at":"2016-08-29T16:30:32Z","body":"@taraujoz having the same issue currently. Are you transforming your data at all in ```RestangularProvider.addResponseInterceptor(...)``` method?"}}
{"actor":{"display_login":"jamespsterling"}}