diff --git a/client/src/app-components/ticket-event.js b/client/src/app-components/ticket-event.js index ebab5f20..ba6fa9e5 100644 --- a/client/src/app-components/ticket-event.js +++ b/client/src/app-components/ticket-event.js @@ -80,6 +80,9 @@ class TicketEvent extends React.Component { } renderComment() { + const {author} = this.props.author; + const customFields = (author && author.customfields) || []; + return (
@@ -88,7 +91,7 @@ class TicketEvent extends React.Component { {i18n((this.props.author.staff) ? 'STAFF' : 'CUSTOMER')} - {this.props.author.customfields.map(this.renderCustomFieldValue.bind(this))} + {customFields.map(this.renderCustomFieldValue.bind(this))} {(this.props.private*1) ? this.renderPrivateBadge() : null}
{DateTransformer.transformToString(this.props.date)}
diff --git a/client/src/app-components/ticket-viewer.js b/client/src/app-components/ticket-viewer.js index 87012c71..fd724874 100644 --- a/client/src/app-components/ticket-viewer.js +++ b/client/src/app-components/ticket-viewer.js @@ -11,7 +11,6 @@ import MentionsParser from 'lib-app/mentions-parser'; import TicketEvent from 'app-components/ticket-event'; import AreYouSure from 'app-components/are-you-sure'; -import DateTransformer from 'lib-core/date-transformer'; import Form from 'core-components/form'; import FormField from 'core-components/form-field'; import SubmitButton from 'core-components/submit-button'; @@ -67,7 +66,6 @@ class TicketViewer extends React.Component { render() { const ticket = this.props.ticket; - console.log('tickett',ticket) return (
diff --git a/client/src/app/admin/panel/users/admin-panel-custom-fields.js b/client/src/app/admin/panel/users/admin-panel-custom-fields.js index 0b342289..c93b0195 100644 --- a/client/src/app/admin/panel/users/admin-panel-custom-fields.js +++ b/client/src/app/admin/panel/users/admin-panel-custom-fields.js @@ -43,9 +43,9 @@ class AdminPanelCustomFields extends React.Component {