File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,20 @@ class Content extends ContentBase
3636 const STATUS_ACTIVE = 10 ;
3737 const STATUS_INACTIVE = 20 ;
3838
39+ /**
40+ * @return array
41+ */
42+ public function fields ()
43+ {
44+ return [
45+ 'content ' ,
46+ 'user_id ' ,
47+ 'created_at ' => function ($ model ) {
48+ return date ("d.m.y H:i:s " , $ model ->created_at );//$date->format('Y-m-d H:i:s');
49+ }
50+ ];
51+ }
52+
3953 /**
4054 * get status text
4155 * @return string
@@ -153,7 +167,7 @@ public function getUsername()
153167 {
154168 $ showUserSupport = $ this ->getModule ()->showUsernameSupport ;
155169 $ username = !empty ($ this ->user_id ) ? $ this ->user ->{$ this ->getModule ()->userName } : $ this ->ticket ->getNameEmail ();
156- if (!$ this ->isOwn () && !$ showUserSupport ) {
170+ if (!$ this ->isOwn () && !$ showUserSupport ) {
157171 $ username = $ this ->getModule ()->userNameSupport ;
158172 }
159173 return $ username ;
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ public function fields()
6565 'category ' ,
6666 'Type ' ,
6767 'title ' ,
68- 'StatusText ' ,
68+ 'status ' ,
69+ 'priority ' ,
6970 'created_at ' => function ($ model ) {
70- //$date=new \DateTime($model->created_at);
7171 return date ("d.m.y H:i:s " , $ model ->created_at );//$date->format('Y-m-d H:i:s');
7272 }
7373 ];
You can’t perform that action at this time.
0 commit comments